C# Class OSAE.Logging

Afficher le fichier Open project: opensourceautomation/Open-Source-Automation Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetConfiguration ( ) : void
Logging ( string requestedLogName ) : System

Method Details

AddToLog() public méthode

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

AddToLog() public static méthode

public static AddToLog ( string audit, bool alwaysLog, string logFile ) : void
audit string
alwaysLog bool
logFile string
Résultat void

DebugLogAdd() public méthode

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

EventLogAdd() public méthode

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
Résultat void

EventLogClear() public méthode

Deletes everything from the event_log table
public EventLogClear ( ) : void
Résultat void

GetLogger() public static méthode

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
Résultat Logging

GetLogger() public static méthode

public static GetLogger ( string requestedLogName ) : Logging
requestedLogName string
Résultat Logging