I am trying to learn log4Net, however I do not have Visual Studio installed on my PC (due to lack of administrative privileges). So, I am trying to execute my code by writing them in the old Windows XP Notepad. In this case, if I want to add a link to log4net.dll, how can I do this?
Sorry for the naivety of .NET. I was just studying!
For example, this is an example of the code I'm trying to execute. A tutorial is available here .
using System; namespace Tutorial1_GettingStarted { class Program { static void Main( string[] args ) { log4net.Config.BasicConfigurator.Configure(); log4net.ILog log = log4net.LogManager.GetLogger( typeof( Program ) ); log.Debug( "Hello World!" ); log.Info( "I'm a simple log4net tutorial." ); log.Warn( "... better be careful ..." ); log.Error( "ruh-roh: an error occurred" ); log.Fatal( "OMG we're dooooooomed!" ); Console.ReadLine();
reference c # visual-studio
Kanini
source share