Programmatically configuring log4net and removing log4net configuration files and associated settings.