Closed
Description
I noticed that when using a custom ExpressionTemplate, my placeholders in log messages are no longer colorized. Is this a bug? e.g. Log.Information("foo {bar}", "bar")
won't color the "bar"
anymore.
I suspect it's only a problem with string arguments.
My template:
var template = new ExpressionTemplate(
"[{@l:u3}] {Coalesce(Substring(SourceContext, LastIndexOf(SourceContext, '.') + 1),'Core')} " +
"<{ThreadId}> {@m}\n{@x}", theme: TemplateTheme.Code);
Without ExpressionTemplate:
With ExpressionTemplate:
I'm not sure if this a problem in expressions, or in the console sink.
Metadata
Metadata
Assignees
Labels
No labels