
    /i                     r   S SK r \ R                  \ R                  \ R                  \ R                  \ R
                  S.rSS jr\S:X  an  \" SS9  \ R                  " S5      r
\
R                  S5        \
R                  S	5        \
R                  S
5        \
R                  S5        \
R                  S5        gg)    N)DEBUGINFOWARNINGERRORCRITICALc                    [         R                  U R                  5       [        R                  5      n[        U[        5      (       d  [        SU  35      e[        R                  " USS9  U(       ac  [        R                  " U5      n[        R                  " S5      nUR                  U5        [        R                  " S5      R                  U5        gg)z'Configures the global logging settings.zInvalid log level: z4%(asctime)s - %(name)s - %(levelname)s - %(message)s)levelformat N)
LOG_LEVELSgetupperloggingr   
isinstanceint
ValueErrorbasicConfigFileHandler	FormattersetFormatter	getLogger
addHandler)r	   filenamenumeric_levelfile_handler	formatters        !e:\genesis-system\AIVA\logging.pyconfigure_loggingr      s    NN5;;=',,?MmS)).ug677m4jk**84%%&\]	!!),"((6     __main__r   )r	   examplezThis is a debug messagezThis is an info messagezThis is a warning messagezThis is an error messagezThis is a critical message)r   N)r   r   r   r   r   r   r   r   __name__r   loggerdebuginfowarningerrorcritical r   r   <module>r*      s     ]]LL]]  
7  zG$y)F
LL*+
KK)*
NN./
LL+,
OO01 r   