using System.Collections.Generic; using System.Linq; using NLog; using PetaPoco; using SubSonic.Repository; namespace NzbDrone.Core.Instrumentation { public class LogProvider { private readonly IDatabase _database; private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); public LogProvider(IDatabase database) { _database = database; } public IList GetAllLogs() { return _database.Fetch(); } public void DeleteAll() { _database.Delete(""); Logger.Info("Cleared Log History"); } } }