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

LogWriterBase Class

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

Common base class for log writers. A derived class must override either the WriteMessage(String) method or both Write methods.

Syntax
public abstract class LogWriterBase : ILogWriter, IDisposable
Inheritance
Object
LogWriterBase
ConsoleLogWriter
FileLogWriter
TraceLogWriter
Implements
ILogWriter
IDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
LogWriterBase()

Creates a new instance of LogWriterBase.

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.

Methods

Name Description
Close()

Closes the log writer.

Dispose()

Disposes the object.

Dispose(Boolean)

Releases unmanaged and managed resources (depending on the scenario). If disposing is false, the method has been called from the finalizer and should not reference other objects (therefore only unmanaged resources can be disposed).

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. This method is only called by Write(LogLevel, Type, Int32, String, String) method and is only used by text-based loggers.

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