C# 클래스 Lawo.EmberPlusSharp.S101.S101Logger

Represents a logger that logs message payloads according to the types passed to the constructor.
상속: IS101Logger
파일 보기 프로젝트 열기: Lawo/ember-plus-sharp 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all resources used by the current instance of the S101Logger class.

LogData ( string type, string direction, byte buffer, int index, int count ) : EventInfo
LogEvent ( string eventName ) : EventInfo
LogEvent ( string eventName, string data ) : EventInfo
LogException ( string direction, Exception exception ) : EventInfo
LogMessage ( string direction, S101Message message, byte payload ) : EventInfo
S101Logger ( EmberTypeBag types, TextWriter logWriter ) : System

Initializes a new instance of the S101Logger class by calling S101Logger( types, logWriter, new XmlWriterSettings { Indent = true }).

S101Logger ( EmberTypeBag types, TextWriter logWriter, XmlWriterSettings settings ) : System

Initializes a new instance of the S101Logger class.

S101Logger ( EmberTypeBag types, XmlWriter xmlLogWriter ) : System

Initializes a new instance of the S101Logger class.

S101Logger ( IEmberConverter converter, XmlWriter xmlLogWriter ) : System

Initializes a new instance of the S101Logger class.

비공개 메소드들

메소드 설명
LogMessage ( System.DateTime timeUtc, string direction, S101Message message, byte payload ) : EventInfo
ValidateLogWriter ( TextWriter logWriter ) : TextWriter
WriteEndEvent ( ) : void
WriteStartEvent ( string type ) : System.DateTime
WriteStartEvent ( string type, System.DateTime timeUtc ) : void

메소드 상세

Dispose() 공개 메소드

Releases all resources used by the current instance of the S101Logger class.
public Dispose ( ) : void
리턴 void

LogData() 공개 메소드

public LogData ( string type, string direction, byte buffer, int index, int count ) : EventInfo
type string
direction string
buffer byte
index int
count int
리턴 EventInfo

LogEvent() 공개 메소드

public LogEvent ( string eventName ) : EventInfo
eventName string
리턴 EventInfo

LogEvent() 공개 메소드

public LogEvent ( string eventName, string data ) : EventInfo
eventName string
data string
리턴 EventInfo

LogException() 공개 메소드

public LogException ( string direction, Exception exception ) : EventInfo
direction string
exception System.Exception
리턴 EventInfo

LogMessage() 공개 메소드

public LogMessage ( string direction, S101Message message, byte payload ) : EventInfo
direction string
message S101Message
payload byte
리턴 EventInfo

S101Logger() 공개 메소드

Initializes a new instance of the S101Logger class by calling S101Logger( types, logWriter, new XmlWriterSettings { Indent = true }).
public S101Logger ( EmberTypeBag types, TextWriter logWriter ) : System
types EmberTypeBag
logWriter System.IO.TextWriter
리턴 System

S101Logger() 공개 메소드

Initializes a new instance of the S101Logger class.
, and/or /// equal null.
public S101Logger ( EmberTypeBag types, TextWriter logWriter, XmlWriterSettings settings ) : System
types EmberTypeBag The types to pass to the internal , which is used to convert /// the payload to XML.
logWriter System.IO.TextWriter The to write log messages to, will be passed to /// .
settings System.Xml.XmlWriterSettings The settings to create the internal with, will be passed to /// .
리턴 System

S101Logger() 공개 메소드

Initializes a new instance of the S101Logger class.
and/or /// equal null.
public S101Logger ( EmberTypeBag types, XmlWriter xmlLogWriter ) : System
types EmberTypeBag The types to pass to the internal , which is used to convert /// the payload to XML.
xmlLogWriter System.Xml.XmlWriter The to write log messages to.
리턴 System

S101Logger() 공개 메소드

Initializes a new instance of the S101Logger class.
and/or /// equal null.
public S101Logger ( IEmberConverter converter, XmlWriter xmlLogWriter ) : System
converter IEmberConverter The converter to use to convert the payload to XML.
xmlLogWriter System.Xml.XmlWriter The to write log messages to.
리턴 System