docplex.util.logging_utils module

This package provide simple logging facilities.

class docplex.util.logging_utils.DocplexLogger[source]

Bases: object

Simple logger interface.

critical(msg)[source]

Logs a message with level CRITICAL.

debug(msg)[source]

Logs a message with level DEBUG.

error(msg)[source]

Logs a message with level ERROR.

info(msg)[source]

Logs a message with level INFO.

log(level, msg)[source]

Logs a message with the specified level.

warning(msg)[source]

Logs a message with level WARNING.

class docplex.util.logging_utils.LoggerToDocloud(docloudlogger)[source]

Bases: docplex.util.logging_utils.DocplexLogger

This logger maps logs with python style logging levels to a docplexcloud logger expecting java style logging levels.

log(level, msg)[source]

Logs a message with the specified level.

class docplex.util.logging_utils.LoggerToFile(file)[source]

Bases: docplex.util.logging_utils.DocplexLogger

This logger logs log records with python style logging levels and just print them on the specified stream

log(level, msg)[source]

Logs a message with the specified level.