Interface ILogService
Service to retrieve and store Log(int?, int?, int?, string, string, LogFunction, LogLevel, Exception, string, params object[]) entries
public interface ILogService
Methods
DeleteLogsAsync(int)
Clear the entire logs of the given site.
Task DeleteLogsAsync(int siteId)
Parameters
siteIdint
Returns
- Task
GetLogAsync(int)
Returns a specific log entry for the given id
Task<Log> GetLogAsync(int logId)
Parameters
logIdint
Returns
- Task<Log>
GetLogsAsync(int, string, string, int)
Returns a list of log entires for the given params
Task<List<Log>> GetLogsAsync(int siteId, string level, string function, int rows)
Parameters
siteIdintlevelstringfunctionstringrowsint
Returns
- Task<List<Log>>
Log(Alias, int?, int?, int?, string, string, LogFunction, LogLevel, Exception, string, params object[])
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)
Parameters
aliasAliaspageIdint?moduleIdint?userIdint?categorystringfeaturestringfunctionLogFunctionlevelLogLevelexceptionExceptionmessagestringargsobject[]
Returns
- Task
Log(int?, int?, int?, string, string, LogFunction, LogLevel, Exception, string, params object[])
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)
Parameters
pageIdint?moduleIdint?userIdint?categorystringfeaturestringfunctionLogFunctionlevelLogLevelexceptionExceptionmessagestringargsobject[]
Returns
- Task