18 lines
588 B
Python
18 lines
588 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import logging
|
||
|
import os
|
||
|
from conf import DEBUG, DELETE_FILES, PAC_AUTH
|
||
|
|
||
|
|
||
|
LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
|
||
|
LOG_DATE = '%d/%m/%Y %H:%M:%S'
|
||
|
logging.addLevelName(logging.ERROR, '\033[1;41mERROR\033[1;0m')
|
||
|
logging.addLevelName(logging.DEBUG, '\x1b[33mDEBUG\033[1;0m')
|
||
|
logging.addLevelName(logging.INFO, '\x1b[32mINFO\033[1;0m')
|
||
|
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT, datefmt=LOG_DATE)
|
||
|
log = logging.getLogger(__name__)
|
||
|
|
||
|
current_path = os.path.dirname(__file__)
|
||
|
PATH_XSLT = os.path.join(current_path, 'xslt', 'cadena.xslt')
|