Photon Server API

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 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()

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 .

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