Redirect Trace output to Console

后端 未结 3 740
萌比男神i
萌比男神i 2020-12-04 12:03

Let\'s say I\'m working on a little batch-processing console app in VB.Net. I want to be able to structure the app like this:



        
3条回答
  •  情深已故
    2020-12-04 12:36

    You can add the following to your exe's .config file.

    
    
        
            
                
                    
                    
                
            
        
    
    

    I included the TextWriter as well, in case you're interested in logging to a file.

提交回复
热议问题