
    sj:                    6    d dl mZ d dlZd dlZd dlmZ d	dZdS )
    )annotationsN)Pathlog_dirr   returnlogging.Loggerc                x   t          j        d          }|                    t           j                   |j                                         | dz  }t          j        |dd          }|                    t           j                   |                    t          j        dd                     |	                    |           | d	z  }t          j        |d
d          }|                    t           j
                   |                    t          j        dd                     |	                    |           t          j        t          j                  }|                    t           j                   |                    t          j        dd                     |	                    |           |S )Nimport_situationszimport_situations_api.logwzutf-8)modeencodingz2%(asctime)s [%(levelname)s] %(name)s - %(message)sz%Y-%m-%d %H:%M:%S)datefmtzintecmar.logaz'%(asctime)s [%(levelname)s] %(message)s)logging	getLoggersetLevelDEBUGhandlersclearFileHandlersetFormatter	Formatter
addHandlerWARNINGStreamHandlersysstdoutINFO)r   loggerdetailed_log_pathdetailed_handleressential_log_pathessential_handlerconsole_handlers          9/var/www/html/analyses/import_situations/logging_utils.pysetup_loggingr%      s   233F
OOGM"""
O"==*+<3QXYYYgm,,,!!'"3<## # #    &''' >1+,>SSZ[[[w///""7#41#$ $ $    '(((+CJ77OW\***  !21#" " "    o&&&M    )r   r   r   r   )
__future__r   r   r   pathlibr   r%    r&   r$   <module>r*      sY    " " " " " "  



           r&   