LMIShellLogger

class lmi.shell.LMIShellLogger.LMIShellLogger(name, level=0)[source]

LMIShell’s logger with queueing capability.

critical(msg, *args, **kwargs)[source]

Log a message with severity ‘CRITICAL’.

debug(msg, *args, **kwargs)[source]

Log a message with severity ‘DEBUG’.

error(msg, *args, **kwargs)[source]

Log a message with severity ‘ERROR’.

exception(msg, *args, **kwargs)[source]

Log a message with severity ‘ERROR’ also with exception information.

info(msg, *args, **kwargs)[source]

Log a message with severity ‘INFO’.

processQueue()[source]

Logs all enabled log records stored in internal queue.

setLevel(level)[source]

Sets a logging level of this handler. If there are any log records stored in internal queue, they are also handled.

Parameters:level (int) – logging level
warning(msg, *args, **kwargs)[source]

Log a message with severity ‘WARNING’.

lmi.shell.LMIShellLogger.lmi_get_logger()[source]

Returns LMIShell’s logger.

Returns:logger
lmi.shell.LMIShellLogger.lmi_init_logger()[source]

Initializes LMIShell’s logging.

lmi.shell.LMIShellLogger.lmi_setup_logger(log_options)[source]

Sets logging level.

Parameters:log_options (int) – level defined in LMIShellOptions