
    bAjx                     V    d Z ddlZddlZddlZddeddfdZdedej                  fdZy)	z!Structured logging configuration.    Ndebugreturnc           	      6   | rt         j                  nt         j                  }t        j                  t        j
                  j                  t        j                  j                  t        j                  j                         t        j                  j                  t        j                  j                  d      t        j                  j                         gt        j                  |      t        t        j                   t"        j$                        d       y )Niso)fmt)fileT)
processorswrapper_classcontext_classlogger_factorycache_logger_on_first_use)loggingDEBUGINFO	structlog	configurecontextvarsmerge_contextvarsr	   add_log_levelStackInfoRendererdevset_exc_infoTimeStamperJSONRenderermake_filtering_bound_loggerdictPrintLoggerFactorysysstdout)r   	log_levels     :C:\xampp\htdocs\tradingbinance\backend\app\core\logging.pysetup_loggingr"   	   s    !&GLLI!!33  ..  224MM&&  ,,,7  --/
  ;;IF 33D"&    namec                 ,    t        j                  |       S )N)r   
get_logger)r$   s    r!   r&   r&      s    %%r#   )F)	__doc__r   r   r   boolr"   strBoundLoggerr&    r#   r!   <module>r,      s=    '  
  $ &&S &Y22 &r#   