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

ConsoleLogWriter Class

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

Console-based log writer that writes log messages to the console.

Syntax
public class ConsoleLogWriter : LogWriterBase, ILogWriter, IDisposable
Inheritance
Object
LogWriterBase
ConsoleLogWriter
Implements
ILogWriter
IDisposable
Inherited Members
LogWriterBase.Close()
LogWriterBase.Dispose()
LogWriterBase.Dispose(Boolean)
LogWriterBase.IsClosed
LogWriterBase.Level
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

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 disposing is false, the method has been called from the finalizer and should not reference other objects (therefore only unmanaged resources can be disposed). Inherited from LogWriterBase.

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.

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