TraceLogWriter Class
Namespace: Rebex
Assembly: Rebex.Common.dll (version 7.0.8944)
Trace-based log writer that writes log messages to all trace listeners.
Syntax
public class TraceLogWriter : LogWriterBase, ILogWriter, IDisposable
Inherited Members
Remarks
For general information about NET trace, see for instance Microsoft's trace listeners.
Constructors
Name | Description |
---|---|
TraceLogWriter() | Creates a new instance of trace log writer based on the default "Info" log level. |
TraceLogWriter(LogLevel) | Creates a new instance of trace log writer based on the specified log level. |
Properties
Name | Description |
---|---|
IsClosed | Get a value indicating whether the log writer is closed. |
Level | Gets or sets the log level - only log messages with log level equal to or greater than the specified one. Inherited from LogWriterBase. |
Methods
Name | Description |
---|---|
Close() | Closes the log writer. Inherited from LogWriterBase. |
Dispose() | Disposes the object. Inherited from LogWriterBase. |
Dispose(Boolean) | Clean up any resources being used. |
Write(LogLevel, Type, Int32, String, String) | Writes a message into the log. Inherited from LogWriterBase. |
Write(LogLevel, Type, Int32, String, String, Byte[], Int32, Int32) | Writes a message and data block into the log. Inherited from LogWriterBase. |
WriteMessage(String) | Appends the specified message text to the trace listeners log. This method is only called by Write(LogLevel, Type, Int32, String, String) method and is only used by text-based loggers. |