File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ If you're using Cloud Foundry, it worth to check out the library [SAP/cf-python-
99 2.2 [ Web application log] ( #22-web-application-log )
1010 2.3 [ Get current correlation-id] ( #23-get-current-correlation-id )
1111 2.4 [ Log extra properties] ( #24-log-extra-properties )
12- 2.5 [ Root logger] ( #25-root-logger )
12+ 2.5 [ Root logger] ( #25-root-logger )
13+ 2.6 [ Custom log formatter] ( #26-custom-log-formatter )
13143 . [ Configuration] ( #3-configuration )
14154 . [ Python References] ( #4-python-references )
15165 . [ Framework support plugin development] ( #5-framework-support-plugin-development )
@@ -148,6 +149,10 @@ logging.basicConfig()
148149json_logging.config_root_logger()
149150```
150151
152+ ## 2.6 Custom log formatter
153+ Customer JSON log formatter can be passed to init method. see example for more detail:
154+ https://github.com/thangbn/json-logging-python/blob/master/example/custom_log_format.py
155+
151156# 3. Configuration
152157logging library can be configured by setting the value in json_logging, all configuration must be placed before json_logging.init method call
153158
You can’t perform that action at this time.
0 commit comments