saleem-mirza / serilog-sinks-mysql

Serilog sink that writes to MySQL database.
Apache License 2.0
35 stars 25 forks source link

Is it possible to add MachineName to the column output to MySQL Logs table using the appsetting.json config file? #9

Closed paulandrewconway closed 6 years ago

eman1986 commented 6 years ago

that would be a needed thing for me as well, most of the websites my team works on are load balanced so we need to know which server its logging from.

eman1986 commented 6 years ago

looks like you'd need to use Serilog.Enrichers.Environment but not sure how'd you use it alongside this sink.

saleem-mirza commented 6 years ago

Enrichers are way to go.

Please see https://github.com/saleem-mirza/serilog-enrichers-context