C# 클래스 GSF.Diagnostics.LogMessage

An individual log message.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Details string
ExceptionString string
ManagedThreadID int
Message string
PreviousFirstChanceExceptionSequenceNumber int
UtcTime System.DateTime

공개 메소드들

메소드 설명
GetMessage ( ) : string

Gets the details of the message.

ToString ( ) : string

Returns a string that represents the current object.

비공개 메소드들

메소드 설명
LogMessage ( LogEventPublisherDetails eventPublisherDetails, LogStackMessages initialStackMessages, LogStackTrace initialStackTrace, LogStackMessages currentStackMessages, LogStackTrace currentStackTrace, LogMessageAttributes flags, string message, string details, Exception exception ) : System

Creates a log message

LogMessage ( Stream stream, LogMessageSaveHelper saveHelper = null ) : System

Loads a log messages from the supplied stream

Save ( Stream stream, LogMessageSaveHelper saveHelper = null ) : void

Writes the log data to the stream

메소드 상세

GetMessage() 공개 메소드

Gets the details of the message.
public GetMessage ( ) : string
리턴 string

ToString() 공개 메소드

Returns a string that represents the current object.
public ToString ( ) : string
리턴 string

프로퍼티 상세

Details 공개적으로 프로퍼티

A long text field with the details of the message. Can be String.Empty.
public string Details
리턴 string

ExceptionString 공개적으로 프로퍼티

A string representation of the exception. Can be String.Empty. If loaded from the disk, since exception objects cannot be serialized, the Exception will be null and this field will have the string representation of Exception
public string ExceptionString
리턴 string

ManagedThreadID 공개적으로 프로퍼티

The Managed Thread ID of the thread that created this message. This is primarily to assist in future log viewing applications where it is beneficial to track the thread.
public int ManagedThreadID
리턴 int

Message 공개적으로 프로퍼티

A specific message about the event giving more specifics about the actual message. Typically, this will be up to 1 line of text. Can be String.Empty.
public string Message
리턴 string

PreviousFirstChanceExceptionSequenceNumber 공개적으로 프로퍼티

A sequence number maintained by each thread thread of the previous first chance exception that was thrown. This is used to assist LogFileViewer associate log messages with properly handled first chance exceptions.
public int PreviousFirstChanceExceptionSequenceNumber
리턴 int

UtcTime 공개적으로 프로퍼티

The time that the message was created.
public DateTime,System UtcTime
리턴 System.DateTime