Aqueduct.Diagnostics.AppLogger.LogFatalError C# (CSharp) Method

LogFatalError() public static method

Writes FATAL-level message to the configured log.
public static LogFatalError ( string message, Exception exception ) : void
message string The message to log.
exception System.Exception The exception to log.
return void
		public static void LogFatalError(string message, Exception exception)
		{
            m_globalLogger.LogFatalError(message, exception);
		    SendToAppFail(exception);
		}

Usage Example

 public static void IncrementValue(string name, long value)
 {
     try
     {
         foreach (var store in ActiveStores)
         {
             store.Increment(name, value);
         }
     }
     catch (Exception ex)
     {
         AppLogger.LogFatalError(String.Format("Error while incrementing {0}", name), ex);
     }
 }
All Usage Examples Of Aqueduct.Diagnostics.AppLogger::LogFatalError