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

Adds support for configuring FILENAME with %fbase. #724

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xinwf
Copy link

@xinwf xinwf commented Aug 22, 2019

1.Set level output with a fixed width 2.Allowing user configure fbase in log filename with conf file

This is a

  • Breaking change
  • New feature
  • Bugfix

I have

Example of this feature:

* GLOBAL:
    ENABLED                 =   true
    TO_FILE                 =   true
    TO_STANDARD_OUTPUT      =   true
    FORMAT                  =   "%datetime{%H:%m:%s} %level %fbase:%line] %msg"
    FILENAME                =   "/tmp/LOG/%datetime{%Y%M%d}/%fbase.log"
    MILLISECONDS_WIDTH      =   3
    PERFORMANCE_TRACKING    =   false
    MAX_LOG_FILE_SIZE       =   1048576
    LOG_FLUSH_THRESHOLD     =   0
	
* VERBOSE:
    ENABLED                 =   false

I have test with CMakeLists with g++14.

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

Successfully merging this pull request may close these issues.

1 participant