jacquard/utils/logger.py
def initialize_logger(args):
    """Sets command name and formatting for subsequent calls to logger"""

    global log_filename
    log_filename = os.path.join(os.getcwd(), "jacquard.log")
    if args.log_file:
        _validate_log_file(args.log_file)
        log_filename = args.log_file

    logging.basicConfig(format=_FILE_LOG_FORMAT,
                        level="DEBUG",
                        datefmt=_DATE_FORMAT,
                        filename=log_filename)

    global _verbose
    if args.verbose:
        _verbose = args.verbose

    start_time = datetime.now().strftime(_DATE_FORMAT)
    global _logging_dict
    _logging_dict = {'user': getpass.getuser(),
                     'host': socket.gethostname(),
                     'start_time': start_time,
                     'tool': args.subparser_name}
def initialize_logger(args):
    """Sets command name and formatting for subsequent calls to logger"""

    global log_filename
    log_filename = os.path.join(os.getcwd(), "jacquard.log")
    if args.log_file:
        _validate_log_file(args.log_file)
        log_filename = args.log_file

    logging.basicConfig(format=_FILE_LOG_FORMAT,
                        level="DEBUG",
                        datefmt=_DATE_FORMAT,
                        filename=log_filename)

    global _verbose
    if args.verbose:
        _verbose = args.verbose

    start_time = datetime.now().strftime(_DATE_FORMAT)
    global _logging_dict
    _logging_dict = {'user': getpass.getuser(),
                     'host': socket.gethostname(),
                     'start_time': start_time,
                     'tool': args.subparser_name}
Sets command name and formatting for subsequent calls to logger