py_trees.logging module

A (very) simple logging module.

Oh my spaghettified magnificence, Bless my noggin with a tickle from your noodly appendages!

class py_trees.logging.Level(value)

Bases: IntEnum

An enumerator representing the logging level.

Not valid if you override with your own loggers.

DEBUG = 0
ERROR = 3
INFO = 1
WARN = 2
class py_trees.logging.Logger(name: str | None = None)

Bases: object

Simple logger object.

Variables:

override (bool) – whether or not the default python logger has been overridden.

debug(msg: str) None

Log a debug message.

Args:

msg: the message to log

error(msg: str) None

Log an error message.

Args:

msg: the message to log

info(msg: str) None

Log a message.

Args:

msg: the message to log

warning(msg: str) None

Log an warning message.

Args:

msg: the message to log