# Path: soap/context/default.py



import os
import sys
import time
            import ipdb
            import traceback
from pprint import pformat
from contextlib import contextmanager
from soap.context import context as _global_context
    set_context(**kwargs)
    yield
    set_context(**ctx)


def log_level(l):
    def wrapper(f):
        def wrapped(*args, **kwargs):
            kwargs['l'] = l
            f(*args, **kwargs)
        return wrapped
    return wrapper


def log_enable(l):
    def wrapper(f):
        def wrapped(*args, **kwargs):
            if l < get_context()['level']:
                return
            return f(*args, **kwargs)
        return wrapped
    return wrapper


def log_context(l):
    def wrapper():
        return local_context(level=l)
    return wrapper



# Path: soap/context/default.py



# Path: soap/logger.py
import os
import sys
import time
            import ipdb
            import traceback
from pprint import pformat
from contextlib import contextmanager
from soap.context import context as _global_context

    set_context(**kwargs)
    yield
    set_context(**ctx)


def log_level(l):
    def wrapper(f):
        def wrapped(*args, **kwargs):
            kwargs['l'] = l
            f(*args, **kwargs)
        return wrapped
    return wrapper


def log_enable(l):
    def wrapper(f):
        def wrapped(*args, **kwargs):
            if l < get_context()['level']:
                return
            return f(*args, **kwargs)
        return wrapped
    return wrapper


def log_context(l):
    def wrapper():
        return local_context(level=l)
    return wrapper



def _init_level():