The ConsoleLogger implements the ILogger interface and outputs all
log messages to the console.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class ConsoleLogger : ILogger, IExceptionHandler
Public Class ConsoleLogger _ Implements ILogger, IExceptionHandler
public ref class ConsoleLogger : ILogger, IExceptionHandler
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
ConsoleLogger()()() |
Initializes a new instance of the ConsoleLogger class that logs all messages (does not filter by log level).
| |
ConsoleLogger(array<String>[]()[]) |
Initializes a new instance of the ConsoleLogger class that logs only the specified
categories of message for any log level.
| |
ConsoleLogger(array<String>[]()[], LogLevels) |
Initializes a new instance of the ConsoleLogger class that logs only the specified categories of messages, filtered by log level.
| |
ConsoleLogger(LogLevels) |
Initializes a new instance of the ConsoleLogger class that logs messages filtered by log level.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
HandleException(Exception) |
Logs a Caplin API exception.
This method is automatically called by the Caplin library once the ConsoleLogger
has been registered with the library instance as an exception handler.
| |
Level |
The lowest level (severity) at which messages are logged at.
| |
Log(LogLevels, String, String) |
Logs a single message with a given severity and category.
| |
Log(LogLevels, String, String, array<Object>[]()[]) |
Logs a single message with supplied parameter values substituted into it.
| |
Log(LogLevels, array<String>[]()[], String) |
Logs a single message with a given severity and one or more categories.
| |
Log(LogLevels, array<String>[]()[], String, array<Object>[]()[]) |
Logs a single message with a given severity and one or more categories,
and with supplied parameter values substituted into it.
| |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
ToString()()() | (Inherited from Object.) |
Inheritance Hierarchy
Object | |
ConsoleLogger |