Ejemplo n.º 1
0
        public void Error(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.Error(message, exception, methodName);
        }