Search Results for

    Show / Hide Table of Contents

    Class XbimLogging

    A helper class to centrally manage logging

    Inheritance
    System.Object
    XbimLogging
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.Common
    Assembly: Xbim.Common.dll
    Syntax
    public class XbimLogging

    Properties

    | Improve this Doc View Source

    LoggerFactory

    Gets and sets the Microsoft.Extensions.Logging.ILoggerFactory used to construct Microsoft.Extensions.Logging.ILogger instances through the XBIM toolkit

    Declaration
    public static ILoggerFactory LoggerFactory { get; set; }
    Property Value
    Type Description
    Microsoft.Extensions.Logging.ILoggerFactory
    Remarks

    Consumers can provide your own implementation, or add a Provider to the default
    (LoggerFactory) implementation

    Methods

    | Improve this Doc View Source

    CreateLogger(String)

    Creates a new Microsoft.Extensions.Logging.ILogger Instance

    Declaration
    public static ILogger CreateLogger(string categoryName)
    Parameters
    Type Name Description
    System.String categoryName
    Returns
    Type Description
    Microsoft.Extensions.Logging.ILogger
    | Improve this Doc View Source

    CreateLogger<T>()

    Creates a new Microsoft.Extensions.Logging.ILoggerT Instance

    Declaration
    public static ILogger<T> CreateLogger<T>()
    Returns
    Type Description
    Microsoft.Extensions.Logging.ILogger<T>
    Type Parameters
    Name Description
    T
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim