Show / Hide Table of Contents

    Class Logger

    Logging module

    Inheritance
    System.Object
    Logger
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Support.C5
    Assembly: Lucene.Net.dll
    Syntax
    public static class Logger

    Properties

    | Improve this Doc View Source

    Log

    Gets or sets the log.

    Declaration
    public static Action<string> Log { get; set; }
    Property Value
    Type Description
    System.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 © 2019 Licensed to the Apache Software Foundation (ASF)