C# Class OSAE.Logging

Exibir arquivo Open project: opensourceautomation/Open-Source-Automation Class Usage Examples

Public Methods

Method Description
AddToLog ( string audit, bool alwaysLog ) : void

Adds a message to the log

AddToLog ( string audit, bool alwaysLog, string logFile ) : void
DebugLogAdd ( string entry ) : void

Add an entry to the degug table

EventLogAdd ( string objectName, string eventName, string parameter1 = null, string parameter2 = null ) : void

Add an entry to the event log table

EventLogClear ( ) : void

Deletes everything from the event_log table

GetLogger ( ) : Logging

Get the current logger, if no logger has been specified in a previous call then the default logger will be returned

GetLogger ( string requestedLogName ) : Logging

Private Methods

Method Description
GetConfiguration ( ) : void
Logging ( string requestedLogName ) : System

Method Details

AddToLog() public method

Adds a message to the log
public AddToLog ( string audit, bool alwaysLog ) : void
audit string
alwaysLog bool
return void

AddToLog() public static method

public static AddToLog ( string audit, bool alwaysLog, string logFile ) : void
audit string
alwaysLog bool
logFile string
return void

DebugLogAdd() public method

Add an entry to the degug table
public DebugLogAdd ( string entry ) : void
entry string String to add to the debug table
return void

EventLogAdd() public method

Add an entry to the event log table
public EventLogAdd ( string objectName, string eventName, string parameter1 = null, string parameter2 = null ) : void
objectName string Object Name
eventName string Event Name
parameter1 string
parameter2 string
return void

EventLogClear() public method

Deletes everything from the event_log table
public EventLogClear ( ) : void
return void

GetLogger() public static method

Get the current logger, if no logger has been specified in a previous call then the default logger will be returned
public static GetLogger ( ) : Logging
return Logging

GetLogger() public static method

public static GetLogger ( string requestedLogName ) : Logging
requestedLogName string
return Logging