C# Class 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.
Datei anzeigen Open project: 51Degrees/dotNET-Device-Detection

Protected Properties

Property Type Description
_syncQueue object
_syncWait object

Protected Methods

Method Description
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.

Private Methods

Method Description
IsQueueEmpty ( ) : bool

Returns true if the message queue is empty.

Method Details

Run() protected method

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

Write() protected method

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.
return void

Property Details

_syncQueue protected_oe static_oe property

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

_syncWait protected_oe static_oe property

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