# Path: falsy/termcc/termcc.py
# def magenta():
#     return fore('magenta')
# 
# def rmagenta():
#     return rfore('magenta')
# 
# def cc(text, **kwargs):
#     c = kwargs.get('fore')
#     b = kwargs.get('back')
#     ss = kwargs.get('styles')
#     p = ''
#     if c:
#         p += fore(c)
#         print(p)
#     if b:
#         p += back(b)
#     if ss:
#         for s in ss:
#             p += style(s)
#     return p + text + reset()


import logging
from falsy.termcc.termcc import magenta, rmagenta, cc



class TraceFilter(logging.Filter):
    def filter(self, record):
        if 'trace' not in dir(record):
            record.trace = ''
        else:
            record.trace = '\n\t' + record.trace
        return True


class HighlightFilter(logging.Filter):

# Path: falsy/termcc/termcc.py
# def magenta():
#     return fore('magenta')
# 
# def rmagenta():
#     return rfore('magenta')
# 
# def cc(text, **kwargs):
#     c = kwargs.get('fore')
#     b = kwargs.get('back')
#     ss = kwargs.get('styles')
#     p = ''
#     if c:
#         p += fore(c)
#         print(p)
#     if b:
#         p += back(b)
#     if ss:
#         for s in ss:
#             p += style(s)
#     return p + text + reset()


# Path: falsy/jlog/filters.py
import logging
from falsy.termcc.termcc import magenta, rmagenta, cc




class TraceFilter(logging.Filter):
    def filter(self, record):
        if 'trace' not in dir(record):
            record.trace = ''
        else:
            record.trace = '\n\t' + record.trace
        return True


class HighlightFilter(logging.Filter):

    def __init__(self, highlights=None):