fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.LogRecorder Class Reference

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. More...

+ Inheritance diagram for fCraft.LogRecorder:
+ Collaboration diagram for fCraft.LogRecorder:

Public Member Functions

 LogRecorder ()
 Creates a recorder for errors and warnings.
 
 LogRecorder (bool restrictToThisThread,[NotNull] params LogType[] thingsToLog)
 Creates a custom recorder.
 
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 (recommended).
 

Properties

bool HasMessages [get, set]
 Whether any messages at all have been recorded.
 
bool HasErrors [get, set]
 Whether any errors have been recorded.
 
bool HasWarnings [get, set]
 Whether any warnings have been recorded.
 
string[] MessageList [get]
 An array of individual recorded messages.
 
string MessageString [get]
 All messages in one block of text, separated by newlines.
 

Detailed Description

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.

Constructor & Destructor Documentation

fCraft.LogRecorder.LogRecorder ( )

Creates a recorder for errors and warnings.

fCraft.LogRecorder.LogRecorder ( bool  restrictToThisThread,
[NotNull] params LogType[]  thingsToLog 
)

Creates a custom recorder.

Parameters
restrictToThisThreadWhether this log recorder should limit recording to messages emitted from the same thread that created this object.
thingsToLogA list or array of LogTypes to record.

Member Function Documentation

void fCraft.LogRecorder.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 (recommended).

Property Documentation

bool fCraft.LogRecorder.HasErrors
getset

Whether any errors have been recorded.

bool fCraft.LogRecorder.HasMessages
getset

Whether any messages at all have been recorded.

bool fCraft.LogRecorder.HasWarnings
getset

Whether any warnings have been recorded.

string [] fCraft.LogRecorder.MessageList
get

An array of individual recorded messages.

string fCraft.LogRecorder.MessageString
get

All messages in one block of text, separated by newlines.


The documentation for this class was generated from the following file: