Following next few steps you will get very basic logging in your project.
Logger will print to console as well as log file, placed in subfolder called Logs of the folder from which you run your app.
- Add log4net to your project using nuget.
- Create or modify your
app.configaccording to example. - Create
log.configfile, fill it according to example and set"Copy if newer"option in properties. - Before call
XmlConfigurator.Configure()all logging will not work.