ConsoleLogWriter Class
Namespace: Rebex
Assembly: Rebex.Common.dll (version 7.0.8944)
Console-based log writer that writes log messages to the console.
Syntax
public class ConsoleLogWriter : LogWriterBase, ILogWriter, IDisposable
Inherited Members
Constructors
Name | Description |
---|---|
ConsoleLogWriter() | Creates a new instance of console log writer with a log level of Info. |
ConsoleLogWriter(LogLevel) | Creates a new instance of console log writer with the specified log level. |
Properties
Name | Description |
---|---|
IsClosed | Get a value indicating whether the log writer is closed. Inherited from LogWriterBase. |
Level | Gets or sets the log level - only log messages with log level equal to or greater than the specified one. Inherited from LogWriterBase. |
UseColors | Gets or sets a value that indicates whether to use console colors. |
Methods
Name | Description |
---|---|
Close() | Closes the log writer. Inherited from LogWriterBase. |
Dispose() | Disposes the object. Inherited from LogWriterBase. |
Dispose(Boolean) | Releases unmanaged and managed resources (depending on the scenario).
If |
Write(LogLevel, Type, Int32, String, String) | Writes a message into the log. |
Write(LogLevel, Type, Int32, String, String, Byte[], Int32, Int32) | Writes a message and data block into the log. |
WriteMessage(String) | Appends the specified message text into a text-based log. |