Class LogRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class LogRepository : ILogRepository
- Inheritance
-
LogRepository
- Implements
-
Constructors
LogRepository(IDbContextFactory<TenantDBContext>)
public LogRepository(IDbContextFactory<TenantDBContext> dbContextFactory)
Parameters
dbContextFactory
IDbContextFactory<TenantDBContext>
Methods
AddLog(Log)
public void AddLog(Log log)
Parameters
log
Log
DeleteLogs(int, int)
public int DeleteLogs(int siteId, int age)
Parameters
siteId
int
age
int
Returns
- int
GetLog(int)
public Log GetLog(int logId)
Parameters
logId
int
Returns
- Log
GetLogs(int, string, string, int)
public IEnumerable<Log> GetLogs(int siteId, string level, string function, int rows)
Parameters
siteId
int
level
string
function
string
rows
int
Returns
- IEnumerable<Log>