Skip to content

Commit

Permalink
feat: logger factory works for static classes by passing the type
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Apr 10, 2020
1 parent bc37497 commit f9328c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Assets/Mirror/Runtime/LogFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ))
Expand Down

0 comments on commit f9328c7

Please sign in to comment.