Created
          February 25, 2019 10:02 
        
      - 
      
 - 
        
Save nstapelbroek/ba2444c3df2b81b614e24a75a81cdd05 to your computer and use it in GitHub Desktop.  
    Configure SQLAlchemy engine logging
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | handler = logging.StreamHandler(sys.stdout) | |
| # handler.setFormatter(JsonFormatter()) | |
| alchemy_engine_logger = logging.getLogger('sqlalchemy.engine') | |
| alchemy_engine_logger.setLevel(logging.INFO) | |
| alchemy_engine_logger.addHandler(handler) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment