Closed snakefoot closed 8 months ago
Thanks for the PR, @snakefoot :+1:
Right now this seems a bit niche to deserve its own extension point here in the target - wondering if there's some way we could enable this but not have to carry a setting specifically for it? :thinking:
Since Seq supports any Level-value, then one might change NLog to output Microsoft Extension ILogger Loglevel (Thus Warning
+ Information
). So it is not just for supporting SubLevel
(But any custom LogLevel-format). Ex ${level:format=FullName}
. See also: https://github.com/NLog/NLog/wiki/Level-Layout-Renderer
Thanks for the follow-up; seems aligned with the NLog way of approaching it - works for me :+1:
@snakefoot I'm missing something on how this is supposed to work. I thought I understood it but now I come to use it I can't find the explanation that I thought I understood ;-) How do I tell NLog to write a log level other than it's built-in "cast-in-stone" levels?
@NameOfTheDragon I think it should be something like:
logger.WithProperty("SubLevel", "Audit").Info("Hello, world!");
HTH, Nick
See also: https://github.com/datalust/seq-tickets/discussions/2117
Then you can override the default LogLevel in Seq by specifying
SubLevel
like this:Or like this: