using Oqtane.Models; using Oqtane.Shared; using System; using System.Collections.Generic; using System.Threading.Tasks; using Oqtane.Enums; namespace Oqtane.Services { /// /// Service to retrieve and store entries /// public interface ILogService { /// /// Returns a list of log entires for the given params /// /// /// /// /// /// Task> GetLogsAsync(int siteId, string level, string function, int rows); /// /// Returns a specific log entry for the given id /// /// /// Task GetLogAsync(int logId); /// /// Clear the entire logs of the given site. /// /// /// Task DeleteLogsAsync(int siteId); /// /// Creates a new log entry /// /// /// /// /// /// /// /// /// /// /// /// Task Log(int? pageId, int? moduleId, int? userId, string category, string feature, LogFunction function, LogLevel level, Exception exception, string message, params object[] args); /// /// Creates a new log entry /// /// /// /// /// /// /// /// /// /// /// /// /// Task Log(Alias alias, int? pageId, int? moduleId, int? userId, string category, string feature, LogFunction function, LogLevel level, Exception exception, string message, params object[] args); } }