Photon Server API Documentation v5.0RC1

Classes | Static Public Member Functions | List of all members
ExitGames.Logging.LogManager Class Reference

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...

Static Public Member Functions

static ILogger GetCurrentClassLogger ()
 Gets an ILogger for the calling class type. More...
 
static ILogger GetLogger (string name)
 Gets an ILogger for the specified name. More...
 
static ILogger GetLogger< T > ()
 Gets an ILogger for the specified type. More...
 
static ILogger GetLogger (Type type)
 Gets an ILogger for the specified type. More...
 
static void SetLoggerFactory (ILoggerFactory factory)
 Assigns a new ILoggerFactory to create ILogger instances. More...
 

Detailed Description

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

Member Function Documentation

◆ 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
nameThe name.
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
typeThe type for the logger.
Returns
A new ILogger for the specified Type.

◆ GetLogger< T >()

static ILogger ExitGames.Logging.LogManager.GetLogger< T > ( )
inlinestatic

Gets an ILogger for the specified type.

Template Parameters
TThe 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
factoryThe new factory. Set null to disable logging.