C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HandleLog ( object sender, LogEventArgs e ) : void

Описание методов

Dispose() публичный Метод

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
Результат void

LogRecorder() публичный Метод

Creates a recorder for errors and warnings.
public LogRecorder ( ) : System
Результат System

LogRecorder() публичный Метод

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.
Результат System