File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
([ #4621 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4621 ) )
20
20
- Fix license field in pyproject.toml files
21
21
([ #4625 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4625 ) )
22
+ - Update logger level to NOTSET in logs example
23
+ ([ #4637 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4637 ) )
22
24
- Logging API accepts optional ` context ` ; deprecates ` trace_id ` , ` span_id ` , ` trace_flags ` .
23
25
([ #4597 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4597 ) )
24
26
Original file line number Diff line number Diff line change 33
33
logger_provider .add_log_record_processor (BatchLogRecordProcessor (exporter ))
34
34
handler = LoggingHandler (level = logging .NOTSET , logger_provider = logger_provider )
35
35
36
+ # Set the root logger level to NOTSET to ensure all messages are captured
37
+ logging .getLogger ().setLevel (logging .NOTSET )
38
+
36
39
# Attach OTLP handler to root logger
37
40
logging .getLogger ().addHandler (handler )
38
41
You can’t perform that action at this time.
0 commit comments