FEAT: documentation for %F field

This commit is contained in:
Pawel Soltys 2022-09-01 12:48:10 +02:00
parent 03b3f50870
commit 397b06e15f
2 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,7 @@ Fields can be any of:
- `%M` function or method name (requires `enableCallStack: true` on the category, see [configuration object](api.md))
- `%C` class name (requires `enableCallStack: true` on the category, see [configuration object](api.md))
- `%A` function or method name alias (requires `enableCallStack: true` on the category, see [configuration object](api.md))
- `%F` fully qualified caller name (requires `enableCallStack: true` on the category, see [configuration object](api.md))
- `%x{<tokenname>}` add dynamic tokens to your log. Tokens are specified in the tokens parameter.
- `%X{<tokenname>}` add values from the Logger context. Tokens are keys into the context values.
- `%[` start a coloured block (colour will be taken from the log level, similar to `colouredLayout`)

View File

@ -112,6 +112,7 @@ function dummyLayout(loggingEvent) {
* - %M method or function name
* - %C class name
* - %A method or function name
* - %F fully qualified caller name
* - %x{<tokenname>} add dynamic tokens to your log. Tokens are specified in the tokens parameter
* - %X{<tokenname>} add dynamic tokens to your log. Tokens are specified in logger context
* You can use %[ and %] to define a colored block.