cloudmesh-common.cloudmesh.common.logger

simple logging convenience framework

Module Contents

Functions

LOGGER(filename)

creates a logger with the given name.

LOGGING_ON(log)

Switches logging on

LOGGING_OFF(log)

Switches logging off

cloudmesh-common.cloudmesh.common.logger.LOGGER(filename)

creates a logger with the given name.

You can use it as follows:

log = cloudmesh.common.LOGGER(__file__)
log.error("this is an error")
log.info("this is an info")
log.warning("this is a warning")
cloudmesh-common.cloudmesh.common.logger.LOGGING_ON(log)

Switches logging on :param log: the logger for which we switch logging on

cloudmesh-common.cloudmesh.common.logger.LOGGING_OFF(log)

Switches logging off :param log: the logger for which we switch logging off