Closed JaimeReynoso closed 6 years ago
Hi @JaimeReynoso,
Do you have a quick repo of the problem
Thanks!
Hi @JaimeReynoso,
Any chance for some code to repo the problem?
Hi I see the same problem. You can use the test-repo I used for playing with this: https://github.com/eaardal/SerilogDemo/tree/output-template
Code:
const string outputTemplate =
@"=== Meta ===
Timestamp=""{Timestamp}""
Level=""{Level}""
=== Context ===
Application=""{Applikasjon}""
ThreadId=""{ThreadId}""
=== Message ===
{Message}
";
var loggerConfiguration = new LoggerConfiguration();
loggerConfiguration
.Enrich.With(new ThreadIdEnricher())
.Enrich.WithProperty("Application", "MyApp")
.WriteTo.ColoredConsole(outputTemplate: outputTemplate)
.WriteTo.EventCollector("http://localhost:8088/", "b9543dee-981a-4175-a3e9-963bbcebf677", outputTemplate: outputTemplate)
;
Result I see in Splunk vs template I see in console
Structured Sinks don't support outputTemplate
. If you look at SplunkLoggingConfigurationExtensions
you'll see than the parameter outputTemplate
is never used.
It makes sense to remove the outputTemplate
parameter, thoughts?
Yeah if it's not supported it shouldn't look like it is imo. Either remove or mark as [Obsolete] with explanation?
The event collector ignores the output template option. It does not render the output template specified