
     hX                     0    d Z ddlZej                  dfdZy)a_  
The logging options for yagmail. Note that the logger is set on the SMTP class.

The default is to only log errors. If wanted, it is possible to do logging with:

yag = SMTP()
yag.setLog(log_level = logging.DEBUG)

Furthermore, after creating a SMTP object, it is possible to overwrite and use your own logger by:

yag = SMTP()
yag.log = myOwnLogger
    Nc                    t        j                  t              }|j                  t         j                         |rt        j
                  |      }n2| t        j                         g|_        |S t        j                         }|j                  |        t        j                  dd      }|j                  |       |g|_        |S )Nz3%(asctime)s [yagmail] [%(levelname)s] : %(message)sz%Y-%m-%d %H:%M:%S)logging	getLogger__name__setLevelERRORFileHandlerNullHandlerhandlersStreamHandler	FormattersetFormatter)	log_levelfile_path_nameloggerch	formatters        K/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/yagmail/log.py
get_loggerr      s     x(F
OOGMM"   0		"..01""$KK	 !!=?RI
 OOI dFOM    )__doc__r   DEBUGr    r   r   <module>r      s     !t r   