mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +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
|
import traceback
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from pprint import pprint, pformat
|
from pprint import pprint, pformat
|
||||||
from strutil import nott, iss
|
from .strutil import nott, iss
|
||||||
|
|
||||||
class Logg:
|
class Logg:
|
||||||
"""
|
"""
|
||||||
@@ -92,7 +92,8 @@ class Logg:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def logg(cls,
|
def logg(cls,
|
||||||
level: int = logging.WARNING,
|
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
|
Use this *class method* to send logs to the DefaultLogger instance created when this class was created
|
||||||
:param level:
|
:param level:
|
||||||
|
|||||||
Reference in New Issue
Block a user