minitrino.core.logging.handler module#

Minitrino logger handler.

class minitrino.core.logging.handler.MinitrinoLoggerHandler(spinner: Spinner)[source][source]#

Bases: StreamHandler

Primary user-facing log handler for Minitrino.

Clears the spinner line before emitting each log record to ensure clean CLI output during spinner operations.

Initialize the handler.

If stream is not specified, sys.stderr is used.

property stream[source]#

Always return current sys.stderr instead of cached reference.

This ensures the handler writes to whatever stderr currently points to, including CliRunner’s capture buffer during tests.

emit(record: LogRecord)[source][source]#

Emit a log record, always clearing spinner line first.