Skip to content

Mirror::LogFactory

Public Functions

Name
ILogger GetLogger< T >(LogType defaultLogLevel =LogType.Warning)
ILogger GetLogger(System.Type type, LogType defaultLogLevel =LogType.Warning)
ILogger GetLogger(string loggerName, LogType defaultLogLevel =LogType.Warning)
void EnableDebugMode()
Makes all log levels LogType.Log, this is so that NetworkManger.showDebugMessages can still be used
void ReplaceLogHandler(ILogHandler logHandler)
Replacing log handler for all existing loggers and sets defaultLogHandler for new loggers

Public Attributes

Name
SortedDictionary< string, ILogger >.ValueCollection AllLoggers

Public Functions Documentation

function GetLogger< T >

static inline ILogger GetLogger< T >(
    LogType defaultLogLevel =LogType.Warning
)

function GetLogger

static inline ILogger GetLogger(
    System.Type type,
    LogType defaultLogLevel =LogType.Warning
)

function GetLogger

static inline ILogger GetLogger(
    string loggerName,
    LogType defaultLogLevel =LogType.Warning
)

function EnableDebugMode

static inline void EnableDebugMode()

Makes all log levels LogType.Log, this is so that NetworkManger.showDebugMessages can still be used

function ReplaceLogHandler

static inline void ReplaceLogHandler(
    ILogHandler logHandler
)

Replacing log handler for all existing loggers and sets defaultLogHandler for new loggers

Parameters:

  • logHandler

Public Attributes Documentation

variable AllLoggers

static SortedDictionary< string, ILogger >.ValueCollection AllLoggers => loggers.Values;

Updated on 18 January 2021 at 10:57:16 UTC