C# Класс GSF.Diagnostics.LogMessage

An individual log message.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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