Skip to content

Commit 6c36c51

Browse files
committed
add docs for 0.0.11
1 parent 49f4637 commit 6c36c51

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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)
1314
3. [Configuration](#3-configuration)
1415
4. [Python References](#4-python-references)
1516
5. [Framework support plugin development](#5-framework-support-plugin-development)
@@ -148,6 +149,10 @@ logging.basicConfig()
148149
json_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
152157
logging library can be configured by setting the value in json_logging, all configuration must be placed before json_logging.init method call
153158

0 commit comments

Comments
 (0)