示例#1
0
def init_log_out(is_out_put=True):
    type_check.boolean(is_out_put)
    global isprint, log_path, log_file_full_path
    isprint = is_out_put
    if isprint:
        log_path = time_utils.log_path()
        log_file_full_path = log_path + time_utils.log_name()
示例#2
0
def init_log_out(is_out_put=True):
    if not isinstance(is_out_put, bool):
        raise TypeError('bad operand type it was bool')
    global isprint, log_path, log_file_full_path
    isprint = is_out_put
    if isprint:
        log_path = time_utils.log_path()
        log_file_full_path = log_path + time_utils.log_name()