mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
JAG: logg.py: fixes strutil import, adds tag parameter and return type to logg()
Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import inspect
|
||||
import traceback
|
||||
from typing import Optional
|
||||
from pprint import pprint, pformat
|
||||
from strutil import nott, iss
|
||||
from .strutil import nott, iss
|
||||
|
||||
class Logg:
|
||||
"""
|
||||
@@ -92,7 +92,8 @@ class Logg:
|
||||
@classmethod
|
||||
def logg(cls,
|
||||
level: int = logging.WARNING,
|
||||
msg: str = None):
|
||||
tag: str = None,
|
||||
msg: str = None) -> None:
|
||||
"""
|
||||
Use this *class method* to send logs to the DefaultLogger instance created when this class was created
|
||||
:param level:
|
||||
|
||||
Reference in New Issue
Block a user