public void Log(ShamanLogMessage info)
 {
     try
     {
         _logAction?.Invoke(info);
     }
     catch { } // no exception logginng
 }
 public void Log(ShamanLogMessage info)
 {
     try
     {
         _action?.Invoke(info);
     }
     catch { }
 }
Example #3
0
        public static void Log(this IShamanLogger src, Type t, string method, string message)
        {
            if (src.IsNullOrEmpty())
            {
                return;
            }
            var info = new ShamanLogMessage
            {
                Source  = $"{t.Name}.{method}",
                Message = message
            };

            src.Log(info);
        }
 public void Log(ShamanLogMessage info)
 {
 }