logging on Azure

后端 未结 3 958
感动是毒
感动是毒 2020-12-28 21:11

How can we log on Azure withe the granularity & control equivalent to log4net? We use log4net in our web apps we run on IIS and that works very well for us. Is that the

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-28 21:55

    This is pretty straight forward. I use the following log4net configuration to dump a log file in the web application root folder (easily changed to a sub-folder):

    
      
        
        
      
      
        
        
        
        
        
        
        
          
        
      
    
    

    I then inspect the log file when needed directly from Visual Studio (double clicking the file downloads it) Server Explorer:

    Azure Website via Server Explorer

提交回复
热议问题