DataSource.NET
ConsoleLogger Class
NamespacesCaplin.LoggingConsoleLogger
The ConsoleLogger implements the ILogger interface and outputs all log messages to the console.
Declaration Syntax
C#Visual BasicVisual C++
public class ConsoleLogger : ILogger, 
	IExceptionHandler
Public Class ConsoleLogger _
	Implements ILogger, IExceptionHandler
public ref class ConsoleLogger : ILogger, 
	IExceptionHandler
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ConsoleLogger()()()
Initializes a new instance of the ConsoleLogger class that logs all messages (filters no log levels).

ConsoleLogger(array<String>[]()[])
Initializes a new instance of the ConsoleLogger class.

ConsoleLogger(array<String>[]()[], LogLevels)
Initializes a new instance of the ConsoleLogger class.

ConsoleLogger(LogLevels)
Initializes a new instance of the ConsoleLogger class.

Equals(Object)
Determines whether the specified Object is equal to the current 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. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(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) that messages are logged at. For example, if Level is set to LogLevels.Info then only messages at Information level and above will be logged (that is, messages at levels Info, Warning, Notufy, Error, Critical). The default value is SourceLevels.Finest, which causes messages at all levels to be logged.

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()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy
Object
ConsoleLogger

Assembly: DataSource.NET (Module: DataSource.NET) Version: 4.5.18.2 (4.5.18.2)