dolittle-obsolete / DotNET.Fundamentals

Reusable, fundamental abstractions and building blocks
http://www.dolittle.io
MIT License
4 stars 8 forks source link

Logging Appender Configuration #193

Open smithmx opened 5 years ago

smithmx commented 5 years ago

We have a LoggingContext and a GetCurrentLoggingContext delegate to provide it.

This is given to the (hard-coded) DefaultLogAppendersConfigurator which supplies it to the DefaultLogAppender or the JsonLogAppender, depending on environment settings.

However, we have a rule (because of no access to the IoC during boot) that you must have a default ctor for any custom ICanConfigureLogAppenders.

We need some way to pass or access the GetCurrentLoggingContext from a custom log appender.

┆Issue is synchronized with this Asana task