예제 #1
0
        private static void RawLog(LogEventKind kind, LogSource source, Exception exception, String message, Object[] items)
        {
            if (Handler is null)
            {
                return;
            }

            var li = new LogInformation
            {
                Kind      = kind,
                Source    = source,
                Timestamp = new TimeSpan(DateTime.UtcNow.Ticks),
                Message   = message,
                Exception = exception,
                Items     = items,
            };

            Handler.Enqueue(li);
        }
예제 #2
0
 public abstract void Log(LogInformation info);
예제 #3
0
 public override void Log(LogInformation info)
 {
     this.OnLog.Invoke(info);
 }