mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-24 01:15:50 +01:00
18 lines
388 B
C#
18 lines
388 B
C#
using System;
|
|
using NLog;
|
|
|
|
namespace NzbDrone.Common.Instrumentation
|
|
{
|
|
public static class NzbDroneLogger
|
|
{
|
|
public static Logger GetLogger(Type type)
|
|
{
|
|
return LogManager.GetLogger(type.Name.Replace("NzbDrone.", ""));
|
|
}
|
|
|
|
public static Logger GetLogger(object obj)
|
|
{
|
|
return GetLogger(obj.GetType());
|
|
}
|
|
}
|
|
}
|