C# Class Support.ExceptionHandler

Implements exception information logging.
Exibir arquivo Open project: sgrebnov/IeMobileDebugger

Public Methods

Method Description
Log ( Exception ex ) : void

Saves exception occurred to log.

Log ( string message ) : void

Saves string message to log

LogAndNotify ( Exception ex ) : void

Saves exception occurred to log and then shows exception message to user.

LogAndNotify ( string message ) : void

Saves string message to log and then shows message to user

Private Methods

Method Description
DataToFile ( string data ) : void

Implements logic to save some data to log file. If logging fails then it saves exception to event log (Application section).

ExceptionHandler ( ) : System

Initializes static members of the ExceptionHandler class.

Method Details

Log() public static method

Saves exception occurred to log.
public static Log ( Exception ex ) : void
ex System.Exception Exception to save information about
return void

Log() public static method

Saves string message to log
public static Log ( string message ) : void
message string Message to put into log
return void

LogAndNotify() public static method

Saves exception occurred to log and then shows exception message to user.
public static LogAndNotify ( Exception ex ) : void
ex System.Exception Exception to save information about
return void

LogAndNotify() public static method

Saves string message to log and then shows message to user
public static LogAndNotify ( string message ) : void
message string Message to put into log
return void