:tocdepth: 3 :py:mod:`gws.core.log` ====================== .. py:module:: gws.core.log .. autoapi-nested-parse:: Logging facility. **Source code:** :source:`gws.core.log` Module Contents --------------- .. py:function:: critical(msg: str, *args, **kwargs) .. py:function:: debug(msg: str, *args, **kwargs) .. py:function:: error(msg: str, *args, **kwargs) .. py:function:: exception(msg: str = '', *args, **kwargs) .. py:function:: exception_backtrace(exc: BaseException | None) -> list Exception backtrace as a list of strings. .. py:function:: get_level() -> str .. py:function:: if_debug(fn, *args) If debugging, apply the function to args and log the result. .. py:function:: info(msg: str, *args, **kwargs) .. py:class:: Level Log level. .. py:attribute:: ALL :value: 0 .. py:attribute:: CRITICAL :value: 50 .. py:attribute:: DEBUG :value: 10 .. py:attribute:: ERROR :value: 40 .. py:attribute:: INFO :value: 20 .. py:attribute:: NOTSET :value: 0 .. py:attribute:: WARN :value: 30 .. py:attribute:: WARNING :value: 30 .. py:function:: log(level: int, msg: str, *args, **kwargs) .. py:function:: set_level(level: int | str | None) .. py:function:: warning(msg: str, *args, **kwargs)