Skip to content

Commit e35a743

Browse files
authored
plugins logs start with "plugins." prefix (#65710)
1 parent f9f2429 commit e35a743

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/core/server/logging/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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
181181
Here 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
193193
The `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
260260
logging:
261261
loggers:
262-
- context: your-plugin
262+
- context: plugins.myPlugin
263263
appenders: [console]
264264
```
265265
Logs 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
284284
Suppresses 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

Comments
 (0)