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

日志跨天问题 #93

Open
saintAsmita opened this issue Jan 30, 2018 · 1 comment
Open

日志跨天问题 #93

saintAsmita opened this issue Jan 30, 2018 · 1 comment

Comments

@saintAsmita
Copy link

`* GLOBAL:
ENABLED = true
TO_FILE = true
TO_STANDARD_OUTPUT = false
FORMAT = "%level|%datetime{%Y-%M-%d %H:%m:%s}|%msg"
FILENAME = "/log_%datetime{%Y%M%d%H}.log"
MILLISECONDS_WIDTH = 3
PERFORMANCE_TRACKING = false
MAX_LOG_FILE_SIZE = 209715200 ## 200MB - Comment starts with two hashes (##)
LOG_FLUSH_THRESHOLD = 100 ## Flush after every 100 logs

  • TRACE:
    ENABLED = false
  • DEBUG:
    ENABLED = false
  • FATAL:
    ENABLED = false
  • ERROR:
    FILENAME = "/error_log_%datetime{%Y%M%d%H}.log"
  • WARNING:
    ENABLED = false
  • INFO:
    FILENAME = "/info_log_%datetime{%Y%M%d%H}.log"
  • VERBOSE:
    ENABLED = false
    `
    如此配置日志文件,启动的时候日志是正常的,但是一个小时过去,并没有开启新的日志文件,而是在上一个小时的文件里面继续写入。跨天后,原有日志被压缩归档,但是info,error都没有新的日志写入了。log日志仍然写在前一天的最开始的那个文件里。
    1.29启动,1.30观察
    image
@mingzhenliu
Copy link

用最新的fisco-bcos,按小时日志滚动是新的fisco-bcos才支持。

Honglei-Cong pushed a commit to Honglei-Cong/bcos that referenced this issue Oct 10, 2018
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