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
siteId
int
Returns
GetLogAsync(int)
Returns a specific log entry for the given id
Task<Log> GetLogAsync(int logId)
Parameters
logId
int
Returns
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
Returns
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
alias
AliaspageId
int?moduleId
int?userId
int?category
stringfeature
stringfunction
LogFunctionlevel
LogLevelexception
Exceptionmessage
stringargs
object[]
Returns
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
pageId
int?moduleId
int?userId
int?category
stringfeature
stringfunction
LogFunctionlevel
LogLevelexception
Exceptionmessage
stringargs
object[]