@@ -167,7 +167,7 @@ logging:
167167 - context : plugins
168168 appenders : [custom]
169169 level : warn
170- - context : plugins.pid
170+ - context : plugins.myPlugin
171171 level : info
172172 - context : server
173173 level : fatal
@@ -180,14 +180,14 @@ logging:
180180
181181Here is what we get with the config above:
182182
183- | Context | Appenders | Level |
184- | ------------- |:------------------------:| -----:|
185- | root | console, file | error |
186- | plugins | custom | warn |
187- | plugins.pid | custom | info |
188- | server | console, file | fatal |
189- | optimize | console | error |
190- | telemetry | json-file-appender | all |
183+ | Context | Appenders | Level |
184+ | ---------------- |:------------------------:| -----:|
185+ | root | console, file | error |
186+ | plugins | custom | warn |
187+ | plugins.myPlugin | custom | info |
188+ | server | console, file | fatal |
189+ | optimize | console | error |
190+ | telemetry | json-file-appender | all |
191191
192192
193193The ` root` logger has a dedicated configuration node since this context is special and should always exist. By
@@ -259,7 +259,7 @@ define a custom one.
259259``` yaml
260260logging :
261261 loggers :
262- - context : your-plugin
262+ - context : plugins.myPlugin
263263 appenders : [console]
264264` ` `
265265Logs in a *file* if given file path. You should define a custom appender with ` kind: file`
@@ -273,7 +273,7 @@ logging:
273273 layout:
274274 kind: pattern
275275 loggers:
276- - context: your-plugin
276+ - context: plugins.myPlugin
277277 appenders: [file]
278278` ` `
279279# ### logging.json
@@ -282,10 +282,10 @@ the output format with [layouts](#layouts).
282282
283283# ### logging.quiet
284284Suppresses all logging output other than error messages. With new logging, config can be achieved
285- with adjusting minimum required [logging level](#log-level)
285+ with adjusting minimum required [logging level](#log-level).
286286` ` ` yaml
287287 loggers:
288- - context: my-plugin
288+ - context: plugins.myPlugin
289289 appenders: [console]
290290 level: error
291291# or for all output
0 commit comments