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

use level config in log section when sub log section not set level #15176

Merged
merged 3 commits into from
Mar 28, 2021

Commits on Mar 27, 2021

  1. use level config in main section when subsection not set level

    in previouse if a log subsetcion not set level
    it will use ``info`` as default value.
    
    this pr will make default value (``[log] -> LEVEL``) useable.
    
    example config:
    ```INI
    [log]
    MODE = console
    LEVEL = Trace
    
    [log.console]
    LEVEL =
    STDERR = false
    ```
    
    previous result:
    ```JSON
    // console:
    {
      "level": "info",
      ...................
    }
    ```
    
    after change:
    
    ```JSON
    // console:
    {
      "level": "track",
      ...................
    }
    ```
    
    Signed-off-by: a1012112796 <1012112796@qq.com>
    a1012112796 committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    b8e3d2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f2f0f50 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2021

  1. Configuration menu
    Copy the full SHA
    b5159c3 View commit details
    Browse the repository at this point in the history