예제 #1
0
        /// <summary>
        ///     The specified message is of type Fatal.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="exception">The exception.</param>
        /// <param name="sourceFilePath">The source file path.</param>
        /// <param name="sourceLineNumber">The source line number.</param>
        public void Fatal(
            string message,
            Exception exception   = null,
            string sourceFilePath = "",
            int sourceLineNumber  = 0)
        {
            if (exception != null)
            {
                message = $"{message}{Environment.NewLine}";
            }

            string header = MsgHeader(_nameSpace, sourceFilePath, sourceLineNumber);

            _innerLogger?.Fatal(exception, $"{header}{message}");
        }
예제 #2
0
 public void WriteFatal(string stackTrace)
 {
     logger.Fatal(stackTrace);
 }