You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
388 B
19 lines
388 B
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());
|
|
}
|
|
}
|
|
}
|