mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-17 21:44:48 -04:00
19 lines
388 B
C#
19 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());
|
|
}
|
|
}
|
|
}
|