예제 #1
0
파일: Logger.cs 프로젝트: wushian/CLK
        public void Fatal(string message, Exception exception = null, [CallerMemberName] string methodName = "")
        {
            #region Contracts

            if (string.IsNullOrEmpty(message) == true)
            {
                throw new ArgumentException();
            }

            #endregion

            // Exception
            while (exception?.InnerException != null)
            {
                exception = exception.InnerException;
            }

            // Log
            _loggerProvider.Fatal(message, exception, methodName);
        }