コード例 #1
0
 /// <summary>
 /// Logs an exception
 /// </summary>
 /// <param name="ex">The <see cref="Exception"/> instance</param>
 /// <param name="level">The <see cref="LogLevel"/></param>
 public static void Catch(this Exception ex, LogLevel level = LogLevel.Error) => ExceptionH.Catch(ex, level);
コード例 #2
0
        /// <summary>
        /// Debugs an exception
        /// </summary>
        /// <param name="ex">The <see cref="Exception"/> to be logged</param>
        /// <param name="message">The debug message</param>
        /// <param name="memberName">The member name of the caller</param>
        public static void Catch(this Exception ex, string message, [CallerMemberName] string memberName = null)
        {
            Comms.Debug(memberName ?? "Null", message);

            ExceptionH.Catch(ex, LogLevel.Debug);
        }