human
Complete the below
def launch(entire=False):

    ''''If --entire then the whole message is color-coded, otherwise just the
    log level.
    Also turns on interpretation of some special sequences in the log
    format string.  For example, try:
    log --format="%(levelname)s: @@@bold%(message)s@@@normal" log.color'
    '''

=====
Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
    global enabled
    if enabled:
        return
    from pox.core import core
    log = core.getLogger()
    windows_hack = False
    if (sys.platform == 'win32'):
        try:
            from colorama import init
            windows_hack = True
            init()
        except:
            log.info('You    need    colorama    if    you    want    color    logging    on    Windows')
            global _strip_only
            _strip_only = True
    from pox.core import _default_log_handler as dlf
    if (not dlf):
        log.warning('Color    logging    disabled    --    no    default    logger    found')
        return
    old_format = dlf.format
    if entire:
        def new_format(record):
            msg = _proc(old_format(record), record.levelname)
            color = LEVEL_COLORS.get(record.levelname)
            if (color is None):
                return msg
            return _color(color, msg)
    else:
        def new_format(record):
            color = LEVEL_COLORS.get(record.levelname)
            oldlevelname = record.levelname
            if (color is not None):
                record.levelname = _color(color, record.levelname)
            r = _proc(old_format(record), oldlevelname)
            record.levelname = oldlevelname
            return r
    dlf.format = new_format
    if windows_hack:
        if hasattr(dlf, 'stream'):
            if (dlf.stream is sys.__stderr__):
                dlf.stream = sys.stderr
                enabled = True
    else:
        enabled = True