We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please include documentation for overriding the formatter via appsettings.json.
The text was updated successfully, but these errors were encountered:
This works:
"WriteTo": { "ConsoleSink": { "Name": "Console", "Args": { "formatter": { "type": "Serilog.Logfmt.LogfmtFormatter, Serilog.Logfmt" } } } }
but be careful, if you try to use console themes, the theme formatter overrides this formatter.
Sorry, something went wrong.
This works: "WriteTo": { "ConsoleSink": { "Name": "Console", "Args": { "formatter": { "type": "Serilog.Logfmt.LogfmtFormatter, Serilog.Logfmt" } } } } but be careful, if you try to use console themes, the theme formatter overrides this formatter.
Also if you have outputTemplate defined, the formatter is not used
Working example
{ "Name": "File", "Args": { "formatter": "Serilog.Logfmt.LogfmtFormatter, Serilog.Logfmt", "buffered": "true", "flushToDiskInterval": "00:00:03", "path": "logs/adconnector-.log", "rollingInterval": "Day" } }
No branches or pull requests
Please include documentation for overriding the formatter via appsettings.json.
The text was updated successfully, but these errors were encountered: