Class LogsController
Recent log access from in-memory ring buffer + log file management.
GET /api/logs?afterId=-1&limit=500&level=Error — incremental log entries
GET /api/logs?beforeId=1234&limit=200 — the entries older than an id, newest first ("load older")
GET /api/logs/files — list available log files
GET /api/logs/files/{filename} — download log file as ZIP
[Route("/api/logs")]
[RequiresRole(new string[] { "operator" })]
public class LogsController : RedbController
Inheritance
Inherited Members
Methods
DownloadLogFile(string)
[HttpGet("files/{filename}")]
[RequiresRole(new string[] { "admin" })]
public object DownloadLogFile(string filename)
GetLogFiles()
[HttpGet("files")]
public object GetLogFiles()
GetLogs(long?, int?, string?, long?)
[HttpGet("")]
public object GetLogs(long? afterId, int? limit, string? level, long? beforeId)