Skip to content

Commit 83f6252

Browse files
committed
update README
1 parent 168bd3a commit 83f6252

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

154154
Name | Description | Default value
155155
--- | --- | ---

example/flask_sample_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
app = flask.Flask(__name__)
99
json_logging.ENABLE_JSON_LOGGING = True
10+
# json_logging.CREATE_CORRELATION_ID_IF_NOT_EXISTS = False
1011
json_logging.init(framework_name='flask')
1112
json_logging.init_request_instrument(app)
1213

@@ -15,7 +16,6 @@
1516
logger.setLevel(logging.DEBUG)
1617
logger.addHandler(logging.StreamHandler(sys.stdout))
1718

18-
1919
@app.route('/')
2020
def home():
2121
logger.info("test log statement")

0 commit comments

Comments
 (0)