I'm aware that when logging with serilog, log level names (Verbose
, Debug
, Information
, Warning
etc) can either be left with their full name, or truncated to an either upper or lowercase representation by doing something similar to {Level:u3}
- but how can I completely change the level names?
For example, I may want the level names to be in a different language to match the rest of my application.
Or, in my particular case, I find that the level "full names" are too big, but that having all level names with a specific length makes it much harder to identify messages of a different level when quickly scrolling through a log.
So I'd like to instead have:
VERBOSE
DBG
INFO
WARNING
*EXCEPTION*
**FATAL**
But I'm not sure how to accomplish this. How can this be achieved in serilog
?