[GH-ISSUE #3765] 如何设置日志保存时间为0天 #2995

Closed
opened 2026-05-05 13:55:59 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @befen on GitHub (Nov 12, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3765

Describe the feature request

如何设置日志保存时间为0天

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @befen on GitHub (Nov 12, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3765 ### Describe the feature request 如何设置日志保存时间为0天 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:56:00 -06:00
Author
Owner

@xqzr commented on GitHub (Nov 12, 2023):

这也许 未实现

<!-- gh-comment-id:1807243302 --> @xqzr commented on GitHub (Nov 12, 2023): 这也许 未实现
Author
Owner

@fatedier commented on GitHub (Nov 13, 2023):

输出到标准输出,然后重定向 /dev/null 之类的方法

<!-- gh-comment-id:1807388431 --> @fatedier commented on GitHub (Nov 13, 2023): 输出到标准输出,然后重定向 `/dev/null` 之类的方法
Author
Owner

@befen commented on GitHub (Nov 13, 2023):

输出到标准输出,然后重定向 /dev/null 之类的方法
我想保存当天的日志

<!-- gh-comment-id:1807388935 --> @befen commented on GitHub (Nov 13, 2023): > 输出到标准输出,然后重定向 `/dev/null` 之类的方法 我想保存当天的日志
Author
Owner

@fatedier commented on GitHub (Nov 13, 2023):

标准输出重定向到其他日志分割工具,或者自己写个脚本处理。

<!-- gh-comment-id:1807397067 --> @fatedier commented on GitHub (Nov 13, 2023): 标准输出重定向到其他日志分割工具,或者自己写个脚本处理。
Author
Owner

@xqzr commented on GitHub (Nov 13, 2023):

标准输出重定向到其他日志分割工具,或者自己写个脚本处理。

Linux crontab

#每日执行
0 0 * * * >frp.log

Windows 任务计划程序
程序或脚本:

%windir%\System32\cmd.exe

添加参数:

/C echo|set /p=>frp.log
<!-- gh-comment-id:1807632814 --> @xqzr commented on GitHub (Nov 13, 2023): > 标准输出重定向到其他日志分割工具,或者自己写个脚本处理。 Linux crontab ```sh #每日执行 0 0 * * * >frp.log ``` Windows 任务计划程序 程序或脚本: ```batch %windir%\System32\cmd.exe ``` 添加参数: ```batch /C echo|set /p=>frp.log ```
Author
Owner

@xqzr commented on GitHub (Nov 14, 2023):

标准输出重定向到其他日志分割工具,或者自己写个脚本处理。

这是一种方法
但还是希望 frp 能够实现

<!-- gh-comment-id:1810507526 --> @xqzr commented on GitHub (Nov 14, 2023): > 标准输出重定向到其他日志分割工具,或者自己写个脚本处理。 这是一种方法 但还是希望 frp 能够实现
Author
Owner

@github-actions[bot] commented on GitHub (Dec 15, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1857083556 --> @github-actions[bot] commented on GitHub (Dec 15, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2995
No description provided.