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.
Afficher le fichier Open project: 51Degrees/dotNET-Device-Detection

Protected Properties

Свойство Type Description
_syncQueue object
_syncWait object

Méthodes protégées

Méthode 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

Méthode Description
IsQueueEmpty ( ) : bool

Returns true if the message queue is empty.

Method Details

Run() protected méthode

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

Write() protected méthode

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.
Résultat void

Property Details

_syncQueue protected_oe static_oe property

An internal object used for synchronising access to the message queue.
protected static object _syncQueue
Résultat object

_syncWait protected_oe static_oe property

An internal object used to synchronising access to the log file.
protected static object _syncWait
Résultat object