Click or drag to resize

ConsoleLogger Class

An ILogger implementation that logs to the Console.
Inheritance Hierarchy
SystemObject
  ShellBoost.Core.UtilitiesConsoleLogger

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public class ConsoleLogger : ILogger

The ConsoleLogger type exposes the following members.

Constructors
  NameDescription
Public methodConsoleLogger
Initializes a new instance of the ConsoleLogger class.
Top
Properties
  NameDescription
Public propertyAddCounter
Gets or sets a value indicating whether to add a counter in front of calls.
Public propertyAddThreadId
Gets or sets a value indicating whether to add the thread identifier to logs.
Public propertyAddUnmanagedThreadId
Gets or sets a value indicating whether to add the unmanaged thread identifier to logs.
Public propertyCounter
Gets or sets a counter to use.
Public propertyMaximumTraceLevel
Gets or sets the maximum trace level to output to the console.
Top
Methods
  NameDescription
Public methodLog
Logs a value at a specified trace level.
Protected methodResetColor
Sets the foreground and background colors to their defaults.
Protected methodSetForegroundColor
Sets the foreground color.
Public methodStatic memberWrite
Writes the text representation of the specified object.
Protected methodWriteLine(String)
Writes the specified string value, followed by the current line terminator.
Public methodStatic memberWriteLine(Object, ConsoleColor, NullableConsoleColor)
Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
Top
See Also