
    YFi                        d dl Z d dlmZ d dlZdZdZ ej                  ed        e j                  d      Z e j                         Z
e
j                  e        eej                  j                  ee      dd	
      Zej                  e        e j                  e j                   e
eg        e j"                  e      Zd Z e        y)    N)RotatingFileHandlerlogszapp.logT)exist_okz6[%(asctime)s] %(levelname)s in %(module)s: %(message)si      )maxBytesbackupCount)levelhandlersc                      t        j                         j                  t               t        j                         j                  t               t
        j                  d       y)zk
    Function to set up logging configuration.
    This can be called at the start of the application.
    zLogging is set up.N)logging	getLogger
addHandlerconsole_handlerfile_handlerloggerinfo     @/var/www/html/BankruptcyAI-uat/bankruptcy-ai/src/core/logging.pysetup_loggingr       s?    
 ""?3""<0
KK$%r   )r   logging.handlersr   osLOG_DIRLOG_FILEmakedirs	Formatter	formatterStreamHandlerr   setFormatterpathjoinr   basicConfigINFOr   __name__r   r   r   r   r   <module>r%      s     0 	  Gd # GVW	 (''')   Y ' #GGLL(#hA   ) $   ',,/<1P Q 
		8	$& r   