gws.core.log

Logging facility.

Source code: gws.core.log

Module Contents

gws.core.log.critical(msg: str, *args, **kwargs)
gws.core.log.debug(msg: str, *args, **kwargs)
gws.core.log.error(msg: str, *args, **kwargs)
gws.core.log.exception(msg: str = '', *args, **kwargs)
gws.core.log.exception_backtrace(exc: BaseException | None) list

Exception backtrace as a list of strings.

gws.core.log.get_level() str
gws.core.log.if_debug(fn, *args)

If debugging, apply the function to args and log the result.

gws.core.log.info(msg: str, *args, **kwargs)
class gws.core.log.Level
ALL = 0
CRITICAL = 50
DEBUG = 10
ERROR = 40
INFO = 20
NOTSET = 0
WARN = 30
WARNING = 30
gws.core.log.log(level: int, msg: str, *args, **kwargs)
gws.core.log.set_level(level: int | str)
gws.core.log.warning(msg: str, *args, **kwargs)