Exemplo n.º 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()
Exemplo n.º 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()