Show / Hide Table of Contents

Interface ILoggerProvider

Simple interface to be implemented to provide custom log consumers to the library.

An instance of the custom implemented class has to be passed to the library through the LightstreamerClient.setLoggerProvider method.

Namespace: com.lightstreamer.log
Assembly: Lightstreamer.DotNetStandard.Client.Api.dll
Syntax
public interface ILoggerProvider

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
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.

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