Skip to content

Commit c2fee61

Browse files
authored
Ability to register the SerilogLoggerFactory
I needed to retrieve some configuration prior to registering the logger. `UseSerilog` is invoked before the `Startup` class. I sought to register the Factory manually but found out that is internal. I think that `SerilogLoggerFactory` is the main take away from this library and therefore exposing it would make it more flexible for those who don't want to use the extension methods.
1 parent dd90767 commit c2fee61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.AspNetCore/AspNetCore/SerilogLoggerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace Serilog.AspNetCore
2020
{
21-
class SerilogLoggerFactory : ILoggerFactory
21+
public class SerilogLoggerFactory : ILoggerFactory
2222
{
2323
readonly SerilogLoggerProvider _provider;
2424

0 commit comments

Comments
 (0)