C# Class fCraft.LogRecorder

A simple way to temporarily hook into fCraft's Logger. Make sure to dispose this class when you are done recording. The easiest way to ensure that is with a using(){...} block.
Inheritance: IDisposable
Afficher le fichier Open project: GlennMR/800craft Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Stops recording the messages (cannot be resumed). This method should be called when you are done with the object. If LogRecorder is in a using() block, this will be done for you.

LogRecorder ( ) : System

Creates a recorder for errors and warnings.

LogRecorder ( bool restrictToThisThread ) : System

Creates a custom recorder.

Private Methods

Méthode Description
HandleLog ( object sender, LogEventArgs e ) : void

Method Details

Dispose() public méthode

Stops recording the messages (cannot be resumed). This method should be called when you are done with the object. If LogRecorder is in a using() block, this will be done for you.
public Dispose ( ) : void
Résultat void

LogRecorder() public méthode

Creates a recorder for errors and warnings.
public LogRecorder ( ) : System
Résultat System

LogRecorder() public méthode

Creates a custom recorder.
public LogRecorder ( bool restrictToThisThread ) : System
restrictToThisThread bool Whether this log recorder should limit /// recording to messages emitted from the same thread that created this object.
Résultat System