public void SerilogLoggerSettings_Constructor() { var loggerSettings = new SerilogLoggerSettings(_fileSystem, LogEventLevel.Debug, LoggingOutputFlags.Default); loggerSettings.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ISerilogLoggerSettings>(); loggerSettings.GetLogLevel(LoggingOutputFlags.Default).InitialLogLevel.Should().Be(LogLevel.Debug); loggerSettings.GetLogLevel(LoggingOutputFlags.Default).MinimumLogLevel.Should().Be(LogLevel.Debug); }
public void SerilogLoggerSettings_Constructor_IConfiguration() { var configuration = SerilogLoggerSettings.DefaultLoggerSettingsConfiguration(LogLevel.Debug); var loggerSettings = new SerilogLoggerSettings(_fileSystem, configuration, LoggingOutputFlags.Default); loggerSettings.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ISerilogLoggerSettings>(); loggerSettings.Configuration.Should().Be(configuration); loggerSettings.GetLogLevel(LoggingOutputFlags.Default).InitialLogLevel.Should().Be(LogLevel.Debug); loggerSettings.GetLogLevel(LoggingOutputFlags.Default).MinimumLogLevel.Should().Be(LogLevel.Debug); }
public void SerilogLoggerSettings_Constructor_LoggingOutputFlags(LoggingOutputFlags loggingOutputFlags) { var loggerSettings = new SerilogLoggerSettings(_fileSystem, LogEventLevel.Information, loggingOutputFlags); loggerSettings.Should().NotBeNull().And.Subject.Should().BeAssignableTo <ISerilogLoggerSettings>(); var logLevel = loggerSettings.GetLogLevel(loggingOutputFlags); logLevel.Should().NotBeNull().And.Subject.Should().BeAssignableTo <IPureLogLevel>(); logLevel.InitialLogLevel.Should().Be(LogLevel.Information); logLevel.MinimumLogLevel.Should().Be(LogLevel.Information); }