Search Results for

    Show / Hide Table of Contents

    Class NullLogFactory

    An actionETL 'null' logging factory implementation. Inject it into a worker system to discards all logging events.

    Inheritance
    Object
    NullLogFactory
    Implements
    IALogFactory
    Namespace: actionETL.Logging
    Assembly: actionETL.dll
    Syntax
    public class NullLogFactory : IALogFactory

    Properties

    Instance

    Gets the singleton null logging factory, whose loggers will discard all logging events.

    This property is thread-safe.

    Declaration
    public static NullLogFactory Instance { get; }
    Property Value
    Type Description
    NullLogFactory

    Methods

    Flush()

    Flushes any pending log messages (in case of asynchronous targets) with the default timeout of 15 seconds.

    This method is thread-safe.

    Declaration
    public void Flush()

    Flush(Int32)

    Flushes any pending log messages (in case of asynchronous targets).

    This method is thread-safe.

    Declaration
    public void Flush(int timeoutMilliseconds)
    Parameters
    Type Name Description
    Int32 timeoutMilliseconds

    Maximum time to allow for the flush. Any messages after that time will be discarded.

    GetLogger(String)

    Gets a logger.

    This method is thread-safe.

    Declaration
    public ALog GetLogger(string loggerName)
    Parameters
    Type Name Description
    String loggerName

    Name of the logger.

    Returns
    Type Description
    ALog

    A logger with the specified logger name.

    GetLogger(Type)

    Gets the logger.

    This method is thread-safe.

    Declaration
    public ALog GetLogger(Type type)
    Parameters
    Type Name Description
    Type type

    The type whose name becomes the logger name.

    Returns
    Type Description
    ALog

    A logger with the logger name taken from the type name.

    Implements

    IALogFactory

    See Also

    actionETL.Logging.NullLogService
    IALogFactory
    In This Article
    Back to top Copyright © 2023 Envobi Ltd