Table of Contents

Interface ILogService

Namespace
Oqtane.Services
Assembly
Oqtane.Client.dll
public interface ILogService

Methods

DeleteLogsAsync(int)

Clear the entire logs of the given site.

Task DeleteLogsAsync(int siteId)

Parameters

siteId int

Returns

Task

GetLogAsync(int)

Returns a specific log entry for the given id

Task<Log> GetLogAsync(int logId)

Parameters

logId int

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

siteId int
level string
function string
rows int

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

alias Alias
pageId int?
moduleId int?
userId int?
category string
feature string
function LogFunction
level LogLevel
exception Exception
message string
args object[]

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

pageId int?
moduleId int?
userId int?
category string
feature string
function LogFunction
level LogLevel
exception Exception
message string
args object[]

Returns

Task