Пример #1
0
        public void LogObject <T>(Level level, LogDNAMeta <T> meta)
        {
            var obj = new LogDNAObject <T>
            {
                level    = level.Value,
                metatype = meta.Message.GetType().Name,
                meta     = meta
            };

            logdna.AddLine(new LogLine(app, JsonConvert.SerializeObject(obj, jsonSettings), DateTime.UtcNow));
        }
Пример #2
0
 public void LogObjectDebug <T>(LogDNAMeta <T> meta)
 {
     LogObject <T>(Level.DEBUG, meta);
 }
Пример #3
0
 public void LogObjectWarn <T>(LogDNAMeta <T> meta)
 {
     LogObject <T>(Level.WARN, meta);
 }
Пример #4
0
 public void LogObjectError <T>(LogDNAMeta <T> meta)
 {
     LogObject <T>(Level.ERROR, meta);
 }
Пример #5
0
 public void LogObjectInfo <T>(LogDNAMeta <T> meta)
 {
     LogObject <T>(Level.INFO, meta);
 }