Show / Hide Table of Contents

Class ConsoleLoggerProvider

Simple concrete logging provider that logs on the system console.

To be used, an instance of this class has to be passed to the library through the setLoggerProvider(ILoggerProvider).

Inheritance
object
ConsoleLoggerProvider
Implements
ILoggerProvider
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: com.lightstreamer.log
Assembly: Lightstreamer.DotNetStandard.Client.dll
Syntax
public class ConsoleLoggerProvider : ILoggerProvider

Constructors

ConsoleLoggerProvider(int)

Creates an instance of the concrete system console logger.

Declaration
public ConsoleLoggerProvider(int level)
Parameters
Type Name Description
int level

The desired logging level. See ConsoleLogLevel.

Methods

GetLogger(string)

Request for an ILogger instance that will be used for logging occuring on the given category. It is suggested, but not mandatory, that subsequent calls to this method related to the same category return the same ILogger instance.

Declaration
public ILogger GetLogger(string category)
Parameters
Type Name Description
string category

the log category all messages passed to the given ILogger instance will pertain to.

Returns
Type Description
ILogger

An ILogger instance that will receive log lines related to the given category.

Implements

ILoggerProvider
In this article
Back to top Copyright (c) 2004-2022 Lightstreamer s.r.l.