public class LogManager : ILogManager, ILoggerProvider, IDisposable
Public Class LogManager Implements ILogManager, ILoggerProvider, IDisposable
public ref class LogManager : ILogManager, ILoggerProvider, IDisposable
type LogManager = class interface ILogManager interface ILoggerProvider interface IDisposable end
Thetype exposes the following members.
The default ILogManager that can be used by applications that don't use dependency injection. This defaults to an instance of but can be set to something else for unit tests or early in application startup.
Applications that do use dependency injection can obtain this by default via ServiceContainer.
Returns a log-nothing log manager.
Controls whether the index field is emitted. This is a counter start starts at zero for each application instance and is incremented for each event emitted to help reconstruct exactly what happened when the system time resolution isn't fine enough. This defaults to true.
Controls whether timestamps are emitted. This defaults to true.
Specifies the level of events to be actually recorded. This defaults to Info.
Creates a logger.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases all associated resources.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
|GetLogger(String, String, FuncBoolean)|
Returns a named logger.
|GetLogger(Type, String, FuncBoolean)|
Returns a logger to be associated with a specific type. This method supports both static and normal types.
Returns a logger to be associated with a specific type. This method works only for non-static types.
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Sets the log level by safely parsing a string.
Returns a string that represents the current object.(Inherited from Object.)