JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
566 stars 117 forks source link

Core 3.0 logging filters #195 #211

Closed ralmlopez closed 4 years ago

ralmlopez commented 4 years ago

I had the same issue with logging filters as issue #195. I had to manually add the code in my Program.cs file for log filtering to work. I am using Lamar 4.0.

.ConfigureServices((context, services) => { services.AddSingleton<ILoggerFactory, LoggerFactory>(sp => new LoggerFactory( sp.GetRequiredService<IEnumerable<ILoggerProvider>>(), sp.GetRequiredService<IOptionsMonitor<LoggerFilterOptions>>() ) ); })

jeremydmiller commented 4 years ago

@ralmlopez I think this is still the same issue as #195, I haven't gotten that one out to Nuget yet.

ralmlopez commented 4 years ago

You are right. I thought that it had already made it into the nuget package, my mistake. Thanks. Loving the new library.

jeremydmiller commented 4 years ago

Duplicate, closing this.