INNER CODE UNIT · Python

init_non_web

bobbui/json-logging-python · json_logging/__init__.py:79

def init_non_web(*args, **kw):
    """
    Initialize for a non HTTP application
    :param args:
    :param kw:
    """
    __init(*args, **kw)


def __init(framework_name=None, custom_formatter=None, enable_json=False):
    """
    Initialize JSON logging support, if no **framework_name** passed, logging will be initialized in non-web context.
    This is supposed to be called only one time.

    If **custom_formatter** is passed, it will (in non-web context) use this formatter over the default.

    :param framework_name: type of framework logging should support.DEFAULT_CORRELATION_ID_HEADERS
    :param custom_formatter: formatter to override default JSONLogFormatter.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…