Search Results for

    Show / Hide Table of Contents

    Class ConsoleLogger

    Logs to Console.

    Simple logger implementation without dependencies, provided out of the box for convenience. For anything more complex please use NLog/log4net integrations.

    Inheritance
    System.Object
    ConsoleLogger
    Implements
    ILogger
    Namespace: Apache.Ignite.Core.Log
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public class ConsoleLogger : object, ILogger

    Constructors

    ConsoleLogger()

    Initializes a new instance of ConsoleLogger class. Uses Warn minimum level.

    Declaration
    public ConsoleLogger()

    Properties

    DateTimeProvider

    Gets or sets DateTime provider.

    Declaration
    public IDateTimeProvider DateTimeProvider { get; set; }
    Property Value
    Type Description
    IDateTimeProvider

    MinLevel

    Gets the minimum level to be logged. Any levels lower than that are ignored. Default is Warn.

    Declaration
    public LogLevel MinLevel { get; set; }
    Property Value
    Type Description
    LogLevel

    Methods

    IsEnabled(LogLevel)

    Determines whether the specified log level is enabled.

    Declaration
    public bool IsEnabled(LogLevel level)
    Parameters
    Type Name Description
    LogLevel level

    The level.

    Returns
    Type Description
    System.Boolean

    Value indicating whether the specified log level is enabled

    Log(LogLevel, String, Object[], IFormatProvider, String, String, Exception)

    Logs the specified message.

    Declaration
    public void Log(LogLevel level, string message, object[] args, IFormatProvider formatProvider, string category, string nativeErrorInfo, Exception ex)
    Parameters
    Type Name Description
    LogLevel level

    The level.

    System.String message

    The message.

    System.Object[] args

    The arguments to format message. Can be null (formatting will not occur).

    IFormatProvider formatProvider

    The format provider. Can be null if args is null.

    System.String category

    The logging category name.

    System.String nativeErrorInfo

    The native error information.

    Exception ex

    The exception. Can be null.

    Implements

    ILogger
    In This Article
    Back to top © 2015 - 2019 The Apache Software Foundation