You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Python logging library to emit JSON log that can be easily indexed and searchabl
3
3
If you're using Cloud Foundry, it worth to check out the library [SAP/cf-python-logging-support](https://github.com/SAP/cf-python-logging-support) which I'm also original author and contributor.
2.3 [Get current correlation-id](#23-get-current-correlation-id)
@@ -116,7 +116,7 @@ logging.basicConfig()
116
116
json_logging.config_root_logger()
117
117
```
118
118
119
-
# 4. Configuration
119
+
# 3. Configuration
120
120
logging library can be configured by setting the value in json_logging
121
121
122
122
Name | Description | Default value
@@ -133,11 +133,11 @@ COMPONENT_NAME | A human-friendly name representing the software component | EMP
133
133
COMPONENT_INSTANCE_INDEX | Instance's index of horizontally scaled service | 0
134
134
CREATE_CORRELATION_ID_IF_NOT_EXISTS | Whether to generate an new correlation-id in case one is not present| True
135
135
136
-
# 5. Python References
136
+
# 4. Python References
137
137
138
138
TODO: update Python API docs on Github page
139
139
140
-
# 6. Framework support plugin development
140
+
# 5. Framework support plugin development
141
141
To add support for a new web framework, you need to extend following classes in [**framework_base**](/blob/master/json_logging/framework_base.py) and register support using [**json_logging.register_framework_support**](https://github.com/thangbn/json-logging-python/blob/master/json_logging/__init__.py#L38) method:
142
142
143
143
Class | Description | Mandatory
@@ -149,7 +149,7 @@ AppRequestInstrumentationConfigurator | Class to perform request instrumentation
149
149
150
150
Take a look at [**json_logging/base_framework.py**](blob/master/json_logging/framework_base.py), [**json_logging.flask**](tree/master/json_logging/framework/flask) and [**json_logging.sanic**](/tree/master/json_logging/framework/sanic) packages for reference implementations.
151
151
152
-
# 7. FAQ & Troubleshooting
152
+
# 6. FAQ & Troubleshooting
153
153
1. I configured everything, but no logs are printed out?
0 commit comments