C# 클래스 FiftyOne.Log

This is the base class for recording messages in text files. The write operation to file occurs outside of the current thread ensuring minimal impact on performance. If the process completes before the thread has finished writing it is possible that some messages will not be written. This is by design.
This class should not be used in developers code.
파일 보기 프로젝트 열기: 51Degrees/dotNET-Device-Detection

보호된 프로퍼티들

프로퍼티 타입 설명
_syncQueue object
_syncWait object

보호된 메소드들

메소드 설명
Run ( Object stateInfo ) : void

The main loop for the log table service thread.

Write ( string message ) : void

Makes sure the logging thread is running and then writes the message to the queue of messages to be serviced.

비공개 메소드들

메소드 설명
IsQueueEmpty ( ) : bool

Returns true if the message queue is empty.

메소드 상세

Run() 보호된 메소드

The main loop for the log table service thread.
protected Run ( Object stateInfo ) : void
stateInfo Object
리턴 void

Write() 보호된 메소드

Makes sure the logging thread is running and then writes the message to the queue of messages to be serviced.
protected Write ( string message ) : void
message string The message to be written to the log file.
리턴 void

프로퍼티 상세

_syncQueue 보호되어 있는 정적으로 프로퍼티

An internal object used for synchronising access to the message queue.
protected static object _syncQueue
리턴 object

_syncWait 보호되어 있는 정적으로 프로퍼티

An internal object used to synchronising access to the log file.
protected static object _syncWait
리턴 object