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 SourceLoggerFactory
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 SourceCreateLogger(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 |
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 |