Esempio n. 1
0
        public LogResponse Log(StructuredLogLevel level, string machineName, string message)
        {
            string lev = Enum.GetName(typeof(StructuredLogLevel), level);

            StructuredLog l = new StructuredLog { Level = lev, MachineName = machineName, Message = message };

            return Log(l.ToJSON());
        }
Esempio n. 2
0
        public void LogAsync(StructuredLogLevel level, string machineName, string message)
        {
            string        lev = Enum.GetName(typeof(StructuredLogLevel), level);
            StructuredLog l   = new StructuredLog {
                Level = lev, MachineName = machineName, Message = message
            };

            LogAsync(l.ToJSON());
        }
Esempio n. 3
0
        public LogResponse Log(StructuredLogLevel level, string machineName, string message)
        {
            string lev = Enum.GetName(typeof(StructuredLogLevel), level);

            StructuredLog l = new StructuredLog {
                Level = lev, MachineName = machineName, Message = message
            };

            return(Log(l.ToJSON()));
        }
Esempio n. 4
0
 public void LogAsync(StructuredLogLevel level, string machineName, string message)
 {
     string lev = Enum.GetName(typeof(StructuredLogLevel), level);
     StructuredLog l = new StructuredLog { Level = lev, MachineName = machineName, Message = message };
     LogAsync(l.ToJSON());
 }