Closed herme063 closed 5 years ago
I am trying to include this package to my project so that I can log ef queries for debugging purpose. So I tried this
public static readonly LoggerFactory MyLoggerFactory = new LoggerFactory(new[] { new SerilogLoggerProvider() });
then use it on OnConfiguring
optionsBuilder.UseLoggerFactory(MyLoggerFactory);
This will give me some issue. And I narrowed it down to the provider. Is there any setup needed for this to work?
Nvm. It turns out my custom sink was causing issue when certain level of log are emitted.
I am trying to include this package to my project so that I can log ef queries for debugging purpose. So I tried this
public static readonly LoggerFactory MyLoggerFactory = new LoggerFactory(new[] { new SerilogLoggerProvider() });
then use it on OnConfiguring
optionsBuilder.UseLoggerFactory(MyLoggerFactory);
This will give me some issue. And I narrowed it down to the provider. Is there any setup needed for this to work?