mantiserve.logging module

class mantiserve.logging.RedirectedManticoreLogs(handler: logging.Handler)

Bases: object

Resets Manticore logger.

Parameters

handler (logging.Handler) –

Return type

None

mantiserve.logging.configure(ctxt: argparse.Namespace) logging.Logger

Configure the logging for mantiserve according to the passed context.

Parameters

ctxt (argparse.Namespace) –

Return type

logging.Logger

mantiserve.logging.default_manticore_file_logging_handler(filename: str) logging.Handler

Return a logging handler that is set up to redirect Manticore logs to the file specified.

Useful with the RedirectedManticoreLogs context manager.

Parameters

filename (str) –

Return type

logging.Handler