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 Server.SetLoggerProvider method.

    Exceptions thrown to the caller are not logged.

    Exceptions asynchronously notified to the client are logged at ERROR level.

    All tracing is done at INFO and DEBUG levels.

    Full exception stack traces are logged at DEBUG level.

    Namespace: Lightstreamer.DotNet.Logging.Log
    Assembly: Lightstreamer_DotNet_Client_Unified.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
    System.String category

    the log category all messages passed to the given ILogger instance will pertain to. The following categories are used by the library:

    Lightstreamer.DotNet.Server:

    Loggers for Lightstreamer .NET Remote Server and Remote Adapter Library.

    Lightstreamer.DotNet.Server.ServerMain:

    At INFO level, Remote Server startup is logged;

    At DEBUG level, command line argument recognition is logged.

    Lightstreamer.DotNet.Server.NetworkedServerStarter:

    At INFO level, Connection status is logged.

    Lightstreamer.DotNet.Server.MetadataProviderServer:

    At INFO level, processing options are logged.

    At DEBUG level, processing of requests for the Metadata Adapter is logged.

    Lightstreamer.DotNet.Server.DataProviderServer:

    At INFO level, processing options are logged.

    At DEBUG level, processing of requests for the Data Adapter is logged.

    Lightstreamer.DotNet.Server.RequestReply:

    At INFO level, Connection details are logged;

    At DEBUG level, request, reply and notify lines are logged.

    Lightstreamer.DotNet.Server.RequestReply.Replies.Keepalives:

    At DEBUG level, the keepalives on request/reply streams are logged, so that they can be inhibited.

    Lightstreamer.DotNet.Server.RequestReply.Notifications:

    At DEBUG level, the notify lines are logged, so that they can be inhibited.

    Lightstreamer.DotNet.Server.RequestReply.Notifications.Keepalives:

    At DEBUG level, the keepalives on notification streams are logged, so that they can be inhibited.

    See also the provided sample configuration file.

    Returns
    Type Description
    ILogger

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

    Back to top © 2016 Graviton