pylab_ml.common.mqtt_client.mylogger

class mylogger(output=None, enable=False, parent=None)[source]

Bases: object

Class for logging messages.

__init__(output=None, enable=False, parent=None)[source]

Methods

__init__([output, enable, parent])

debug(msg)

Log a debug message.

display(typ, msg)

Display a message with a specific type.

error(msg)

Log an error message.

info(msg)

Log an info message.

log_message(level, msg)

Log a message with a specific level.

measure(msg)

Log a measure message.

warning(msg)

Log a warning message.

debug(msg)[source]

Log a debug message.

display(typ, msg)[source]

Display a message with a specific type.

Parameters:
  • typ (str) – The type of the message (e.g., “DEBUG”, “INFO”, “WARNING”, “ERROR”).

  • msg (str) – The message to be displayed.

Return type:

None

error(msg)[source]

Log an error message.

info(msg)[source]

Log an info message.

log_message(level, msg)[source]

Log a message with a specific level.

measure(msg)[source]

Log a measure message.

warning(msg)[source]

Log a warning message.