這是失敗的webview設定檔,是使用nginx rotatelog的設定檔改出來的
在/var/log/nginx資料夾階層裡面是有正常的每天切log
在底下資料夾webview卻沒有生效
設定檔:
/var/log/nginx/webview/*log {
create 0644 nginx nginx
daily
dateext
rotate 10
missingok
nocompress
sharedscripts
postrotate
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}
debug錯誤log
rotating pattern: /var/log/nginx/webview/*log after 1 days (10 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/nginx/webview/webview_access_log
log needs rotating
considering log /var/log/nginx/webview/webview_error_log
log needs rotating
rotating log /var/log/nginx/webview/webview_access_log, log->rotateCount is 10
dateext suffix '-20180208'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
glob finding old rotated logs failed
rotating log /var/log/nginx/webview/webview_error_log, log->rotateCount is 10
dateext suffix '-20180208'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
glob finding old rotated logs failed
renaming /var/log/nginx/webview/webview_access_log to /var/log/nginx/webview/web view_access_log-20180208
creating new /var/log/nginx/webview/webview_access_log mode = 0644 uid = 997 gid = 994
renaming /var/log/nginx/webview/webview_error_log to /var/log/nginx/webview/webv iew_error_log-20180208
creating new /var/log/nginx/webview/webview_error_log mode = 0644 uid = 997 gid = 994
running postrotate script
running script with arg /var/log/nginx/webview/*log : "
/bin/kill -USR1 cat /run/nginx.pid 2>/dev/null
2>/dev/null || true
"