causiq / logary

Logs and metrics are one! Professional logging, metrics and analytics for your apps.
https://docs.logary.tech/
Other
526 stars 71 forks source link

Enrichers #68

Closed futurechan closed 8 years ago

futurechan commented 9 years ago

Support a pipeline that has support for enrichers, amongst other things

logary

haf commented 9 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.

futurechan commented 9 years ago

That would be fantastic.

futurechan commented 9 years ago

Would the 'advice' be able to map all parts of a log4net log message by default?

futurechan commented 9 years ago

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)

haf commented 9 years ago

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.

haf commented 9 years ago

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

haf commented 8 years ago

Being solved by #110