private void ToLogstashLevelTests(LogLevel logLevel, LogstashLevel expectedLevel)
        {
            var converter = new LogLevelConverter();
            var level     = converter.ToLogStashLevel(logLevel);

            Assert.Equal(expectedLevel, level);
        }
 public LogMessageBody(LogstashLevel level = Defaults.Message.Level)
 {
     Level = level;
 }
Exemple #3
0
 public LogMessage(LogstashLevel level = Defaults.Message.Level)
 {
     Header = new LogMessageHeader();
     Body   = new LogMessageBody(level);
 }