C# Class Centreon_EventLog_2_Syslog.Debug

Write debug informations into log file
Show file Open project: centreon/centreon-E2S

Public Methods

Method Description
Debug ( String fileName, DebugInformations &debInf ) : System

Constructor

Write ( String processName, String line, System.DateTime dtError, int errorLevel ) : System.Boolean

Write error into log file

Private Methods

Method Description
rotateFile ( ) : void

Make rotation of debug file

Method Details

Debug() public method

Constructor
public Debug ( String fileName, DebugInformations &debInf ) : System
fileName String Path and file name of log
debInf DebugInformations Debug informations includng level, verbose, rotation information
return System

Write() public method

Write error into log file
public Write ( String processName, String line, System.DateTime dtError, int errorLevel ) : System.Boolean
processName String Name of the process which wants to write error
line String Error to write
dtError System.DateTime DateTime when of error
errorLevel int
return System.Boolean