mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-07-17 12:01:41 +08:00
refactor LogManagerExtension
This commit is contained in:
@@ -6,14 +6,9 @@ namespace Jellyfin.Plugin.JavTube.Extensions;
|
||||
|
||||
internal static class LogManagerExtension
|
||||
{
|
||||
public static ILogger CreateLogger<T>(this ILogManager factory)
|
||||
public static ILogger CreateLogger<T>(this ILogManager instance)
|
||||
{
|
||||
return factory.GetLogger(Format(typeof(T)));
|
||||
}
|
||||
|
||||
private static string Format(MemberInfo type)
|
||||
{
|
||||
return $"{Constant.JavTube}.{type.Name}";
|
||||
return instance.GetLogger($"{Constant.JavTube}.{typeof(T).Name}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user