Refines log reader to read only X last lines for faster log reading. Adds config for log reading.

This commit is contained in:
Michael Beck
2025-02-05 23:31:23 +01:00
parent d868a181a9
commit 3282270164
3 changed files with 86 additions and 15 deletions

View File

@@ -1,3 +1,8 @@
[DEFAULT]
SECRET_KEY = your_secret_key
API_KEY = your_api_key
SECRET_KEY = your_secret_key # Secret key for session management
API_KEY = your_api_key # API key for accessing the TORN API. Public key should be enough
[LOGGING]
VIEW_MAX_LINES = 500 # Maximum number of lines to display in the log viewer
VIEW_PAGE_LINES = 50 # Number of lines to display per page in the log viewer
TAIL_PAGE_SIZE = 100 # Number of bytes to read at a time