Search Results for

    Show / Hide Table of Contents

    Class Logger

    A logger that logs messages originating from Realm. The default logger can be replaced by setting Default.
    A few built-in implementations are provided by Console, Null, and Function(Action<string>), but you can implement your own.

    Inheritance
    object
    RealmLogger
    Logger
    Inherited Members
    RealmLogger.Console
    RealmLogger.File(string, Encoding)
    RealmLogger.Null
    RealmLogger.Function(Action<string>)
    RealmLogger.Function(Action<LogLevel, string>)
    RealmLogger.Function(Action<LogLevel, LogCategory, string>)
    RealmLogger.LogLevel
    RealmLogger.GetLogLevel(LogCategory)
    RealmLogger.SetLogLevel(LogLevel, LogCategory)
    RealmLogger.Default
    RealmLogger.Log(LogLevel, string)
    RealmLogger.Log(LogLevel, LogCategory, string)
    Namespace: Realms.Logging
    Assembly: Realm.dll
    Syntax
    [Obsolete("Use RealmLogger instead. If using a custom logger, RealmLogger.LogImpl() additionally receives the log category.")]
    public abstract class Logger : RealmLogger

    Methods

    | Edit this page View Source

    LogImpl(LogLevel, LogCategory, string)

    The internal implementation being called from Log(LogLevel, LogCategory, string).

    Declaration
    protected override void LogImpl(LogLevel level, LogCategory category, string message)
    Parameters
    Type Name Description
    LogLevel level

    The criticality level for the message.

    LogCategory category

    The category for the message.

    string message

    The message to log.

    Overrides
    RealmLogger.LogImpl(LogLevel, LogCategory, string)
    | Edit this page View Source

    LogImpl(LogLevel, string)

    The internal implementation being called from Log(LogLevel, string).

    Declaration
    protected abstract void LogImpl(LogLevel level, string message)
    Parameters
    Type Name Description
    LogLevel level

    The criticality level for the message.

    string message

    The message to log.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX