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
Show file Open project: GlennMR/800craft Class Usage Examples

Public Methods

Method 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

Method Description
HandleLog ( object sender, LogEventArgs e ) : void

Method Details

Dispose() public method

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

LogRecorder() public method

Creates a recorder for errors and warnings.
public LogRecorder ( ) : System
return System

LogRecorder() public method

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