Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.NullLogger

Summary

Implements a logger which doesn't do anything with the log messages. Use this as the default logger where no logging is wanted by default, to avoid checks for null in every log message.

Constructors

Creates a new instance of NullLogger.

Instance methods

void
ConfigureVerbosity(string settings)
Takes a string which encodes verbosity limit configuration, parses it and sets the limits accordingly. On failure throws an ArgumentException with a fairly detailed description of the string format. (see also remarks)
void
Debug(string message)
Appends a debug message to the log.
void
Debug(uint verbosity, string message)
void
Error(string message)
Appends an error message to the log.
void
Error(uint verbosity, string message)
void
Exception(Exception exception, LogType type = LogType.Error)
Logs an exception with a stack trace and verbosity 1.
void
Exception(Exception exception, uint verbosity, LogType type)
Logs an exception with a stack trace at the specified verbosity and message type. Any InnerExceptions are also logged as appropriate.
stringSpecifies a short string describing each log type (INFO, WARN, ERROR, or DEBUG).
void
Info(string message)
Appends an informational message to the log.
void
Info(uint verbosity, string message)
bool
IsDebugOn(uint verbosity = 1)
Determines whether a debug message would be visible at specified verbosity.
bool
IsErrorOn(uint verbosity = 1)
Determines whether an error message would be visible at specified verbosity.
bool
IsInfoOn(uint verbosity = 1)
Determines whether an informational message would be visible at specified verbosity.
bool
IsLogOn(uint verbosity, LogType type)
Returns true if a message of the specified verbosity and type will actually end up being logged.
bool
IsWarnOn(uint verbosity = 1)
Determines whether a warning message would be visible at specified verbosity.
void
Log(uint verbosity, LogType type, string message)
Does nothing.
void
void
Warn(string message)
Appends a warning message to the log.
void
Warn(uint verbosity, string message)

Static fields

NullLoggerProvides a preallocated instance of NullLogger.