Debug Module

This module contains the definition of a functions and decorators to manage logging tools used in the framework.

Example

Creating a debug log over a function or method:

@debug("Debug log")
def fun():
    pass
gsf.core.debug.domain.debug.config = {'handlers': [{'sink': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, 'level': 'INFO', 'format': '<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <level>{message}</level>'}]}

Logger configuration.

gsf.core.debug.domain.debug.debug(message: str = '', after: bool = False)

Debug decorator.

gsf.core.debug.domain.debug.enable_debug()

Enables the debug logs.