def decorate(package):
from os import sep<EOL>global _decor_count, _decorated_packs, _decorated_o, _pack_paths<EOL>global decorating<EOL>if "<STR_LIT>" not in _decorated_packs:<EOL><INDENT>_decorated_packs.append("<STR_LIT>")<EOL>packpath = "<STR_LIT>".format(sep)<EOL>if packpath not in _pack_paths:<EOL><INDENT>_pack_paths.append(packpath)<EOL><DEDENT><DEDENT>npack = package.__name__<EOL>if npack not in _decorated_packs:<EOL><INDENT>_decor_count[npack] = [<NUM_LIT:0>, <NUM_LIT:0>, <NUM_LIT:0>]<EOL>_decorated_o[npack] = {}<EOL>_load_subclasses(npack)<EOL>packsplit = _split_object(package, package.__name__)<EOL>origdecor = decorating<EOL>decorating = True<EOL>for ot, ol in packsplit.items():<EOL><INDENT>for name, obj in ol:<EOL><INDENT>decorate_obj(package, name, obj, ot)<EOL><DEDENT><DEDENT>_load_callwraps(npack, package)<EOL>_load_streamlines(npack, package)<EOL>_load_logging(npack, package)<EOL>decorating = origdecor<EOL>_decorated_packs.append(npack)<EOL>_pack_paths.append("<STR_LIT>".format(npack, sep))<EOL>msg.info("<STR_LIT>".format(npack, _decor_count[npack]))<EOL><DEDENT>
Decorates all the methods in the specified package to have logging
    enabled according to the configuration for the package.