mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
feat: logger factory works for static classes by passing the type
This commit is contained in:
parent
bc37497ac9
commit
f9328c771c
@ -12,6 +12,11 @@ public static ILogger GetLogger<T>()
|
||||
return GetLogger(typeof(T).Name);
|
||||
}
|
||||
|
||||
public static ILogger GetLogger(System.Type type)
|
||||
{
|
||||
return GetLogger(type);
|
||||
}
|
||||
|
||||
public static ILogger GetLogger(string loggerName)
|
||||
{
|
||||
if (loggers.TryGetValue(loggerName, out ILogger logger ))
|
||||
|
Loading…
Reference in New Issue
Block a user