NLog Intro

0

Category :

Basic Setup

Create new config file.
Change the "Copy To Output Directory" option for this file to "Copy always".

Config File




    
      
        
          
          
          
          
          
          
          
        
      
      
    

    
      
      
    

DR



  
    
      
test

Instantiate Logger


private static NLog.Logger _logger = NLog.LogManager.GetCurrentClassLogger();
my thanks to: http://www.codeproject.com/Articles/10631/Introduction-to-NLog

0 comments:

Post a Comment