Class LogController
- Namespace
- Oqtane.Controllers
- Assembly
- Oqtane.Server.dll
[Route("api/[controller]")]
public class LogController : Controller
- Inheritance
-
LogController
Constructors
LogController(ILogManager, ILogRepository, ITenantManager)
public LogController(ILogManager logger, ILogRepository logs, ITenantManager tenantManager)
Parameters
logger
ILogManager
logs
ILogRepository
tenantManager
ITenantManager
Methods
Delete(string)
[HttpDelete]
[Authorize(Roles = "Administrators")]
public void Delete(string siteId)
Parameters
siteId
string
Get(int)
[HttpGet("{id}")]
[Authorize(Roles = "Administrators")]
public Log Get(int id)
Parameters
id
int
Returns
- Log
Get(string, string, string, string)
[HttpGet]
[Authorize(Roles = "Administrators")]
public IEnumerable<Log> Get(string siteid, string level, string function, string rows)
Parameters
siteid
string
level
string
function
string
rows
string
Returns
- IEnumerable<Log>
Post(Log)
[HttpPost]
public void Post(Log log)
Parameters
log
Log