Implements a logger which can log messages to several other loggers. The underlying loggers can be configured as
necessary; their settings will be respected.
void | |
Configures the verbosity of every underlying logger. See LoggerBase.ConfigureVerbosity(string) for more
info. |
void | | Appends a debug message to the log. |
void | Debug(uint verbosity, string message) |
void | | Appends an error message to the log. |
void | Error(uint verbosity, string message) |
void | | Logs an exception with a stack trace and verbosity 1. |
void | |
Logs an exception with a stack trace at the specified verbosity and message type. Any InnerExceptions are also
logged as appropriate. |
string | | Specifies a short string describing each log type (INFO, WARN, ERROR, or DEBUG). |
void | | Appends an informational message to the log. |
void | Info(uint verbosity, string message) |
bool | | Determines whether a debug message would be visible at specified verbosity. |
bool | | Determines whether an error message would be visible at specified verbosity. |
bool | | Determines whether an informational message would be visible at specified verbosity. |
bool | |
Returns false if logging a message with the specified settings would not actually result in any logger
producing any output. When this is false it is safe for a program to skip logging a message with these
settings. |
bool | | Determines whether a warning message would be visible at specified verbosity. |
void | | Logs a message to the underlying loggers. |
void | | Creates a visual separation in the log, for example if a new section starts. |
void | | Appends a warning message to the log. |
void | Warn(uint verbosity, string message) |
string | |
When printing multi-line (e.g. wrapped) messages, the indent text will consist of a number of spaces and end
with this suffix. |
Dictionary<string, LoggerBase> | | Add or remove the underlying loggers here. Every logger in this dictionary will be logged to. |
string | |
Holds a format string for the log information message. This will receive the following arguments: {0}:
timestamp, {1}: message type string, {2}: message verbosity level. The actual message will be printed
immediately after the log information message. |
string | |
Holds a format string for printing the date/time at which a log entry was added. Defaults to a full
ISO-formatted date/time string with milliseconds. |
bool | | If true, the timestamps will be printed in UTC. Otherwise in local time. Defaults to false. |
Dictionary<LogType, uint> | |
Holds the current verbosity limit for each of the log types. Only messages with same or lower verbosity will
be printed. Defaults to level 1 for all messages except debug, which defaults to 0. |