StreamLink.NET
ConsoleLogger Class
StreamLink.NETCaplin.StreamLink.LoggingConsoleLogger
An implementation of ILogger that simply logs exceptions and other log messages to the console.
Declaration Syntax
C#Visual BasicVisual C++
public class ConsoleLogger : IExceptionHandler, 
	ILogger
Public Class ConsoleLogger _
	Implements IExceptionHandler, ILogger
public ref class ConsoleLogger : IExceptionHandler, 
	ILogger
Members
All MembersConstructorsMethodsProperties



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

ConsoleLogger(array<String>[]()[])
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)
Handles the exception.

Level
The lowest level that messages are logged at. For example, if Level is set to SourceLevels.Information then only messages at Information level and above will be logged (that is, messages at levels Information, Warning, Error, Critical). The default value is SourceLevels.All, which causes messages at all levels to be logged.

Log(SourceLevels, String, String)
Logs at the specified level.

Log(SourceLevels, String, String, array<String>[]()[])
Logs at the specified level.

Log(SourceLevels, array<String>[]()[], String)
Logs at the specified level.

Log(SourceLevels, array<String>[]()[], String, array<String>[]()[])
Logs the specified level.

MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
This simple implementation of ILogger is provided for use when developing StreamLink enabled applications, and you should not normally use it in deployed applications. In applications for deployment you are recommended to use a fully featured logging framework, such as Apache log4net.
Inheritance Hierarchy
Object
ConsoleLogger

Assembly: Caplin.StreamLink (Module: Caplin.StreamLink) Version: 5.0.5.0 (5.0.5.0)