File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,13 @@ added: REPLACEME
240240Creates a child logger with additional context bindings. Child loggers inherit
241241the parent's configuration and add their own bindings to all log records.
242242
243+ > ** Note for library authors:** The ` level ` option in ` child() ` is intended for
244+ > application code only. Library and module authors should NOT override the log
245+ > level in child loggers. Instead, libraries should inherit the parent logger's
246+ > level to respect the application developer's log level configuration.
247+ > Application developers can use this feature to isolate specific components
248+ > or adjust verbosity for particular subsystems they directly control.
249+
243250``` mjs
244251import { Logger } from ' node:logger' ;
245252
You can’t perform that action at this time.
0 commit comments