Skip to content

Commit 8380a03

Browse files
committed
fix(logger): update with the new logger
1 parent ef58612 commit 8380a03

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/PollinationSDK/Helper/LogUtils.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ namespace PollinationSDK
55
{
66
internal static class LogUtils
77
{
8-
private static string _namespaceName = System.Reflection.MethodBase.GetCurrentMethod()?.DeclaringType?.Namespace ?? "Unknown Namespace";
9-
private static string _className = System.Reflection.MethodBase.GetCurrentMethod()?.DeclaringType?.Name ?? "Unknown Class";
10-
private static string _logCatagory = $"{_namespaceName}.{_className}";
8+
private static string _logCatagory = $"PollinationSDK";
119

12-
private static Pollination.LogHelper? _helper;
13-
internal static Pollination.LogHelper Helper => _helper ??= new Pollination.LogHelper(_logCatagory);
10+
private static PollinationLogger.LogHelper? _helper;
11+
internal static PollinationLogger.LogHelper Helper => _helper ??= new PollinationLogger.LogHelper(_logCatagory);
1412

1513
internal static ILogger GetLogger<T>() => Helper.GetLoggerOptional<T>();
1614
internal static ILogger GetLogger(Type type) => Helper.GetLoggerOptional(type);

0 commit comments

Comments
 (0)