C# 클래스 OSAE.Logging

파일 보기 프로젝트 열기: opensourceautomation/Open-Source-Automation 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetConfiguration ( ) : void
Logging ( string requestedLogName ) : System

메소드 상세

AddToLog() 공개 메소드

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

AddToLog() 공개 정적인 메소드

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

DebugLogAdd() 공개 메소드

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

EventLogAdd() 공개 메소드

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
리턴 void

EventLogClear() 공개 메소드

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

GetLogger() 공개 정적인 메소드

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
리턴 Logging

GetLogger() 공개 정적인 메소드

public static GetLogger ( string requestedLogName ) : Logging
requestedLogName string
리턴 Logging