The log level.
Platforms Supported: All
Alternatively, add padding to align the message.
${pad:padding=5:inner=${level:uppercase=true}}
Alternatively, truncate to align the message:
${level:format=TriLetter:uppercase=true}
uppercase - Output level in upper-case. Default: false
Introduced with NLog v5.0 to simplify default Layout, instead of using the ambient uppercase-property
format - Output format of the level. Introduced in 4.4.6 Default: Name
Possible values:
Introduced in NLog 4.4.6
Introduced in NLog 4.7
Introduced in NLog 4.4.6
Introduced in NLog 4.4.6
Introduced in NLog 5.0.5
Configuration:
Code:
logger.Debug("Test Message")
Result:
Configuration:
${level:format=FirstCharacter}
Code:
logger.Debug("Test Message")
Result:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4