Class LogManager
Compatibility class that mimics some aspects of the LogManager class in log4net. Responsible for creating new ILog instances that can be used for logging.
Inheritance
Namespace: EPiServer.Logging.Compatibility
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public static class LogManager : Object
Remarks
This class is provided to ease the transitioning from log4net and will be removed in a future release.
It is recommended to use the Log
Methods
GetLogger(String)
Gets a ILog instance for the provided type.
Declaration
public static ILog GetLogger(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | The name of the logger. |
Returns
Remarks
This class is provided to ease the transitioning from log4net and will be removed in a future release.
It is recommended to use the Get
Exceptions
Type | Condition |
---|---|
System. |
name |
GetLogger(Type)
Gets a ILog instance for the provided type.
Declaration
public static ILog GetLogger(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The type that the logger should be created for. |
Returns
Remarks
This class is provided to ease the transitioning from log4net and will be removed in a future release.
It is recommended to use the Get
Exceptions
Type | Condition |
---|---|
System. |
type |