mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
adds log output method, please keep developing this
This commit is contained in:
@@ -456,6 +456,10 @@ class LFCliBase:
|
||||
# print("lfclibase::self.proxy: ")
|
||||
# pprint.pprint(self.proxy)
|
||||
|
||||
def logg(self, level="debug", mesg=None):
|
||||
if (mesg is None) or (mesg == ""):
|
||||
return
|
||||
print("[{level}]: {msg}".format(level=level, msg=mesg))
|
||||
|
||||
# This style of Action subclass for argparse can't do much unless we incorporate
|
||||
# our argparse as a member of LFCliBase. Then we can do something like automatically
|
||||
|
||||
Reference in New Issue
Block a user