Log ​
Static logging utility that provides methods for writing debug, message, and error logs.
Kind: Static class
Namespace: CrowdControl.Common
Public Static Functions
void
Writes a debug message to the log.
void
Writes a message to the log.
void
Writes a message to the log.
void
Writes an error message to the log.
void
Writes an error message to the log.
void
Writes an error message to the log.
void
Posts a log event with the specified message, source, and tags.
void
Posts a log event with the specified message, source, and tags.
void
Posts a log event with the specified message, source, and tags.
void
Posts a log event with the specified message, source, and tags.
void
Invokes the OnMessage event with the specified message and log level.
Public Attributes
LogInstance
Instance
Gets the singleton log instance.
ColorTextWriter
StdOutErrorWriter
Text writer for error output with red color formatting.
string
OUTPUT_FOLDER
The name of the folder where log files are stored.
Properties
static
bool
IncludeTimestamps
[get, set]
Gets or sets whether timestamps should be included in log output.
static
bool
ConsoleOutput
[get, set]
Gets or sets whether logs should be written to the console.
static
bool
FileOutput
[get, set]
Gets or sets whether logs should be written to files.
static
int
SuppressionCount
[get, set]
Gets or sets the count of suppressed error messages.
Events
Action<string, LogLevel>
OnMessage
Event raised when a log message is written.
Action<Event>
EventPosted
Event raised when a log event is posted.
