Mininet Python API Reference Manual
Mininet-specific logger Enable each mininet .py file to with one. More...
|Setup loglevel. More...|
|Log 'msg % args' with severity 'OUTPUT'. More...|
Mininet-specific logger Enable each mininet .py file to with one.
from mininet.log import [lg, info, error] ...get a default logger that doesn't require one newline per logging call. Inherit from object to ensure that we have at least one new-style base class, and can then use the __metaclass__ directive, to prevent this @param error @param TypeError Error when calling the metaclass bases a new-style class can't have only classic bases If Python2.5/logging/__init__.py defined Filterer as a new-style class, via Filterer( object ): rather than Filterer, we wouldn't need this. Use singleton pattern to ensure only one logger is ever created.
Log 'msg % args' with severity 'OUTPUT'.
To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.warning("Houston, we have a %s", "cli output", exc_info=1)
Convenience function to support lowercase names.
|levelName||level name from LEVELS|