mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
added /logs
This commit is contained in:
parent
fc7d4536ac
commit
9160343a51
16 changed files with 231 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue