Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

TraceLogWriter Class

Namespace: Rebex
Assembly: Rebex.Common.dll (version 7.0.9147)

Trace-based log writer that writes log messages to all trace listeners.

Syntax
public class TraceLogWriter : LogWriterBase, ILogWriter, IDisposable
Inheritance
Object
LogWriterBase
TraceLogWriter
Implements
ILogWriter
IDisposable
Inherited Members
LogWriterBase.Close()
LogWriterBase.Dispose()
LogWriterBase.Level
LogWriterBase.Write(LogLevel, Type, Int32, String, String)
LogWriterBase.Write(LogLevel, Type, Int32, String, String, Byte[], Int32, Int32)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

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.

In This Article
  • Remarks
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies