C# Class ArcStache.ComLogUtil

Summary description for LogUtil
Default location for log file is in the "Logs" folder located in the directory the calling DLL exists in.
Exibir arquivo Open project: dtsagile/arcstache Class Usage Examples

Public Methods

Method Description
ComLogUtil ( ) : System

Initializes a new instance of the ComLogUtil class. Log file will be created in a "Logs" folder located alongside the running DLL.

LogDebug ( string className, string publicMethodName, string message ) : void

Logs the info.

LogError ( string className, string publicMethodName, string parameters, Exception ex ) : void

Logs the error.

LogError ( string className, string publicMethodName, string parameters, string message, Exception ex ) : void

Logs the error.

LogInfo ( string className, string publicMethodName, string message ) : void

Logs the info.

LogParameters ( string className, string publicMethodName, string parameters ) : void

Logs the parameters.

LogWarning ( string className, string publicMethodName, string message ) : void

Logs the warning.

Private Methods

Method Description
Log ( LogLevel level, string message ) : void

Logs the specified message by creating new log file or appending message.

Method Details

ComLogUtil() public method

Initializes a new instance of the ComLogUtil class. Log file will be created in a "Logs" folder located alongside the running DLL.
public ComLogUtil ( ) : System
return System

LogDebug() public method

Logs the info.
public LogDebug ( string className, string publicMethodName, string message ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
message string The message.
return void

LogError() public method

Logs the error.
public LogError ( string className, string publicMethodName, string parameters, Exception ex ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
parameters string The method parameters.
ex System.Exception The exception.
return void

LogError() public method

Logs the error.
public LogError ( string className, string publicMethodName, string parameters, string message, Exception ex ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
parameters string The method parameters.
message string
ex System.Exception The exception.
return void

LogInfo() public method

Logs the info.
public LogInfo ( string className, string publicMethodName, string message ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
message string The message.
return void

LogParameters() public method

Logs the parameters.
public LogParameters ( string className, string publicMethodName, string parameters ) : void
className string Name of the class.
publicMethodName string Name of the public method.
parameters string The parameters.
return void

LogWarning() public method

Logs the warning.
public LogWarning ( string className, string publicMethodName, string message ) : void
className string Name of the source class.
publicMethodName string Name of the public method.
message string The message.
return void