added /logs

This commit is contained in:
Keivan Beigi 2013-06-04 17:49:53 -07:00
commit 9160343a51
16 changed files with 231 additions and 16 deletions

View file

@ -1,4 +1,5 @@
using System.Linq;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Instrumentation
{
@ -6,6 +7,7 @@ namespace NzbDrone.Core.Instrumentation
{
void DeleteAll();
void Trim();
PagingSpec<Log> Paged(PagingSpec<Log> pagingSpec);
}
public class LogService : ILogService
@ -26,5 +28,10 @@ namespace NzbDrone.Core.Instrumentation
{
_logRepository.Trim();
}
public PagingSpec<Log> Paged(PagingSpec<Log> pagingSpec)
{
return _logRepository.GetPaged(pagingSpec);
}
}
}