Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日志文件在那里 #17

Closed
akin520 opened this issue Jan 19, 2021 · 3 comments
Closed

日志文件在那里 #17

akin520 opened this issue Jan 19, 2021 · 3 comments

Comments

@akin520
Copy link

akin520 commented Jan 19, 2021

{remote} {when-iso} {:proxyTarget} {method} {uri} {proto} {status} {size-human} {referer} {userAgent}
从那里面能看到日志,好像没有产生新文件

@vicanso
Copy link
Owner

vicanso commented Jan 19, 2021

@akin520 现在的日志是输出至标准输出stdout stderr,晚点我发个版本增加日志文件配置,支持输出至文件

vicanso added a commit that referenced this issue Jan 19, 2021
@vicanso
Copy link
Owner

vicanso commented Jan 19, 2021

v4.0.4版本已增加支持指定日志文件,支持两种方法:

// 单文件形式
--log /var/pike.log
// lumberjack形式,根据日志大小与时间分割
--log lumberjack:///tmp/pike.log?maxSize=100&maxAge=1&compress=true

@akin520
Copy link
Author

akin520 commented Jan 20, 2021

OK,谢谢

@akin520 akin520 closed this as completed Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants