From f8952d56e198de3983c39bb163dfc57216407ace Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Mon, 8 Feb 2010 15:49:32 -0800 Subject: [PATCH] Added info() and error() as aliases for lg.info() and lg.error() --- mininet/log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mininet/log.py b/mininet/log.py index cec1ce50..8030810d 100644 --- a/mininet/log.py +++ b/mininet/log.py @@ -71,7 +71,7 @@ class MininetLogger( Logger, object ): """Mininet-specific logger Enable each mininet .py file to with one import: - from mininet.log import lg + from mininet.log import [lg, info, error] ...get a default logger that doesn't require one newline per logging call. @@ -122,3 +122,5 @@ def setLogLevel( self, levelname=None ): lg = MininetLogger() +info = lg.info +error = lg.error -- GitLab