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.config
according to example. - Create
log.config
file, fill it according to example and set"Copy if newer"
option in properties. - Before call
XmlConfigurator.Configure()
all logging will not work.