Closed fabianrieder closed 3 years ago
Same behaviour with Serilog when using EcsTextFormatter (as described in this documentation https://www.elastic.co/guide/en/apm/agent/dotnet/master/serilog.html#serilog
It seems the issue has been fixed as I have tested the source code and it works fine. Any plans to push to nuget ?
@Leftyx @fabianrieder I'm looking at pushing out a new release
@Leftyx 1.5.3 has been released to nuget. Are you able to upgrade and report if it solves the issue?
@russcam I've updated the package to 1.5.3 and it works like charm. Thank
Great to hear, @Leftyx! I'll close this issue now
@fabianrieder did you resolve your issue with Serilog with 1.5.3 of this package? I keep having the same problem, if I remove the CustomFormatter = EcsTextFormatter()
line my logs do have exceptions in them in elastic (but not all the other ECS fields), and when I add the exceptions are lost...
@fabianrieder did you resolve your issue with Serilog with 1.5.3 of this package? I keep having the same problem, if I remove the
CustomFormatter = EcsTextFormatter()
line my logs do have exceptions in them in elastic (but not all the other ECS fields), and when I add the exceptions are lost...
Unfortunately not. i still have the same issue that exceptions aren't sent to ElasticSearch when usingn
ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog): Elastic.CommonSchema.NLog + Elastic.Apm.NLog
ECS schema version (e.g. 1.4.0):
ECS .NET assembly version (e.g. 1.4.2): 1.5.1
Elasticsearch version (if applicable):
.NET framework / OS: .NET-Framework 4.7.2, Win 10
Description of the problem, including expected versus actual behavior: If I log a Warning with an exception, the logentry isn't written to the file when i use the EcsLayout
Steps to reproduce:
try to write a log-entry with an exception:
The Output-File only has 1 logmessage written, the one with the exception is missing_
The NLOG-Logfile shows the following Error/Exception: