tribler.core.restapi.logging_endpoint
Classes
A custom MemoryHandler flusher. Instead of delegating to the |
|
This endpoint allows retrieval of the logs. |
Module Contents
- class tribler.core.restapi.logging_endpoint.RotatingMemoryHandler(capacity, flushLevel=logging.ERROR, target=None, flushOnClose=True)
Bases:
logging.handlers.MemoryHandlerA custom MemoryHandler flusher. Instead of delegating to the
targetand flushing thebuffer, simply keep the lastcapacityrecords in the buffer.
- class tribler.core.restapi.logging_endpoint.LoggingEndpoint
Bases:
tribler.core.restapi.rest_endpoint.RESTEndpointThis endpoint allows retrieval of the logs.
- path = '/api/logging'
- base_handler
- memory_logger
- async get_logs(request: aiohttp.web.Request) tribler.core.restapi.rest_endpoint.RESTResponse
Return the most recent logs.