File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ json_logging.config_root_logger()
149149```
150150
151151# 3. Configuration
152- logging library can be configured by setting the value in json_logging
152+ logging library can be configured by setting the value in json_logging, all configuration must be placed before json_logging.init method call
153153
154154Name | Description | Default value
155155 --- | --- | ---
Original file line number Diff line number Diff line change 77
88app = flask .Flask (__name__ )
99json_logging .ENABLE_JSON_LOGGING = True
10+ # json_logging.CREATE_CORRELATION_ID_IF_NOT_EXISTS = False
1011json_logging .init (framework_name = 'flask' )
1112json_logging .init_request_instrument (app )
1213
1516logger .setLevel (logging .DEBUG )
1617logger .addHandler (logging .StreamHandler (sys .stdout ))
1718
18-
1919@app .route ('/' )
2020def home ():
2121 logger .info ("test log statement" )
You can’t perform that action at this time.
0 commit comments