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:
Jed Reynolds
2021-11-03 14:14:25 -07:00
parent 25d40a7a6a
commit ba008b4968

View File

@@ -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: