SimpleFlashtraceLogger Class
A base class for simple but low-performance and low-feature implementations of IFlashtraceLogger.
Namespace: Flashtrace.Loggers
Assembly: Flashtrace.dll
Syntax
public abstract class SimpleFlashtraceLogger : IFlashtraceLogger, IFlashtraceLocalLogger, IFlashtraceExceptionHandler
Remarks
The simplification stems from the wrapping of all message arguments in an object array, which allocates memory. Also, the logger does not support indentation.
Constructors
Name | Description |
---|---|
SimpleFlashtraceLogger(FlashtraceRole, string) | Initializes a new instance of the SimpleFlashtraceLogger class. |
Properties
Name | Description |
---|---|
Category | |
Factory | |
Role | Gets the role of records created by this IFlashtraceLogger. A list of standard roles is available in the FlashtraceRole class. |
Methods
Name | Description |
---|---|
IsEnabled(FlashtraceLevel) | Determines whether logging is enabled for a given FlashtraceLevel. |
Write(FlashtraceLevel, LogRecordKind, string, Exception?) | Writes a text message. |