[This is preliminary documentation and is subject to change.]
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.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)
Syntax
| C# |
public sealed class LogRecorder : IDisposable
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| LogRecorder()()()() | Creates a recorder for errors and warnings. | |
| LogRecorder(Boolean, array<LogType>[]()[][]) | Creates a custom recorder. | |
| 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). | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| HasErrors | Whether any errors have been recorded. | |
| HasMessages | Whether any messages at all have been recorded. | |
| HasWarnings | Whether any warnings have been recorded. | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| MessageList | An array of individual recorded messages. | |
| MessageString | All messages in one block of text, separated by newlines. | |
| ToString()()()() | (Inherited from Object.) |