mattwcole / gelf-extensions-logging

GELF provider for Microsoft.Extensions.Logging
MIT License
109 stars 42 forks source link

Include 'stringLevel' in log messages #34

Closed mrmartan closed 5 years ago

mrmartan commented 5 years ago

As the title says. There is only the numeric level which is not human friendly.

mattwcole commented 5 years ago

I believe this is an issue with Graylog, rather than this library. Some suggested solutions can be found here.

mrmartan commented 5 years ago

I don't think so. Your library even isn't called graylog-extensions-logging and rightly so. Solving it with Graylog is workaround at best.

1) I am interested in GELF, not Graylog. We are not putting the messages into Graylog, rather leveraging GELF with ELK. 2) You can easily add it as an additional field 3) Serilog (and Serilog.Sinks.Graylog) does this.

I'd like this to work with Microsoft.Extensions.Logging and can't workaround it since i don't have access to log messages when configuring the log output (no surprise here).