Show / Hide Table of Contents

    Class Logger

    Logging module

    Inheritance
    System.Object
    Logger
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public static class Logger : object

    Properties

    | Improve this Doc View Source

    Log

    Gets or sets the log.

    Declaration
    public static Action<string> Log { get; set; }
    Property Value
    Type Description
    Action<System.String>

    The log.

    Remarks

    If Log is not set it will return a dummy action x => { return; }) eliminating the need for null-reference checks.

    Examples

    The following is an example of assigning a observer to the logging module:

      Logger.Log = x => Console.WriteLine(x);
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)