Closed futurechan closed 8 years ago
Not at this point, I'm afraid.
We could improve the Logger implementation to also resolve a number of 'advice', so that each Rule that matches can attach advice to the resolved Logger instance, and then each LogLine from that Logger would have the enriched content in its data
Map.
That would be fantastic.
Would the 'advice' be able to map all parts of a log4net log message by default?
Also, I've been looking at creating a MassTransit logary logger. I'm not sure how to approach the conversion of a log object to a string. Any thoughts? (I'm using the log4net logary adapter for now)
Well, it would act on a LogLine / Measure, not the raw log4net log item, so it wouldn't map them, but you could easily create advice for all relevant data items that log4net attaches.
The log object is just a string; see the Topshelf adater: https://github.com/logary/logary/blob/master/src/adapters/Logary.Adapters.Topshelf/Topshelf.LogaryLogWriter.fs#L28-L30
Being solved by #110
Support a pipeline that has support for enrichers, amongst other things