While instrumenting python framework, where to view the debug logs.
example: 
In transport/http.py:
there is a call as given below: 
logger.debug("Sent request, url=%s size=%.2fkb status=%s", url, len(data) / 1024.0, response.status)
Where to see this kind of log, and what are the steps to enable if not enabled by default
             
            
               
               
               
            
            
           
          
            
              
                Emanuil  
                (Emanuil Tolev)
               
              
                  
                    October 5, 2020,  2:54pm
                   
                   
              2 
               
             
            
              I assume you're talking about the Elastic APM Python Agent since you're talking about instrumenting. You need to enable debug-level logging. See the agent docs on logging config for instructions on that. 
EDIT: I've moved your topic to the APM section of the forum from the Elasticsearch section - in case you search for it.
             
            
               
               
               
            
            
           
          
            
            
              Thank you so much. 
It worked.
1 Follow up , it is insisting to add a version key with value 1 any idea why?
             
            
               
               
               
            
            
           
          
            
              
                Emanuil  
                (Emanuil Tolev)
               
              
                  
                    October 5, 2020,  3:13pm
                   
                   
              4 
               
             
            
              Where is it adding that? Could you post an example message or screenshot of what you mean?
             
            
               
               
               
            
            
           
          
            
            
              in settings.py we have to put below dictionary:
LOGGING = { 
'handlers': { 
'console': { 
'level': 'DEBUG', 
'class': 'logging.StreamHandler' 
} 
}, 
'loggers': { 
'elasticapm': { 
'level': 'DEBUG', 
'handlers': ['console'] 
}, 
}, 
'version': 1,  
}
             
            
               
               
               
            
            
           
          
            
              
                system  
                (system)
                  Closed 
               
              
                  
                    November 4, 2020,  3:26pm
                   
                   
              6 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.