o
    bzgÊ  ã                   @   sH   d dl Z d dlZ d dlZd dlZej ej ej e¡¡¡ dd„ Z	dS )é    Nc                  C   s¨   t j t j t j t¡¡d ¡sd} d}t| |ƒ t j t j t j t¡¡d ¡s8t  t j t j t¡¡d ¡ tj	 
t j t j t¡¡d ¡ t ¡ }| tj¡ |S )Nz/logging.confzResource directory not found.zFKindly check your exe directory because resources directory not found.z/log/)ÚosÚpathÚexistsÚjoinÚdirnameÚ__file__ÚprintÚmakedirsÚloggingÚconfigÚ
fileConfigÚ	getLoggerÚsetLevelÚNOTSET)ÚtitleÚtextÚlogger© r   ú4/var/www/html/BC_companycode/salesinv_bc/LogUtils.pyÚgetRootLogger	   s    
  r   )
r
   Úlogging.configr   Úsysr   Úappendr   r   r   r   r   r   r   r   Ú<module>   s    