The log manager provides methods to get instances of ILogger using a ILoggerFactory. Any logging framework of choice can be used by assigining a new ILoggerFactory with SetLoggerFactory. The default logger factory creates ILogger that do not log
More...
The log manager provides methods to get instances of ILogger using a ILoggerFactory. Any logging framework of choice can be used by assigining a new ILoggerFactory with SetLoggerFactory. The default logger factory creates ILogger that do not log
◆ GetCurrentClassLogger()
static ILogger ExitGames.Logging.LogManager.GetCurrentClassLogger |
( |
| ) |
|
|
inlinestatic |
Gets an ILogger for the calling class type.
- Returns
- A new ILogger for the calling class type.
◆ GetLogger() [1/2]
static ILogger ExitGames.Logging.LogManager.GetLogger |
( |
string |
name | ) |
|
|
inlinestatic |
Gets an ILogger for the specified name.
- Parameters
-
- Returns
- A new ILogger for the specified name .
◆ GetLogger() [2/2]
static ILogger ExitGames.Logging.LogManager.GetLogger |
( |
Type |
type | ) |
|
|
inlinestatic |
Gets an ILogger for the specified type.
- Parameters
-
type | The type for the logger. |
- Returns
- A new ILogger for the specified Type.
◆ GetLogger< T >()
Gets an ILogger for the specified type.
- Template Parameters
-
T | The type for the logger. |
- Returns
- A new ILogger for the specified T .
◆ SetLoggerFactory()
static void ExitGames.Logging.LogManager.SetLoggerFactory |
( |
ILoggerFactory |
factory | ) |
|
|
inlinestatic |
Assigns a new ILoggerFactory to create ILogger instances.
- Parameters
-
factory | The new factory. Set null to disable logging. |