I am using log4net which is being configured via a config file. There is one case where I would like everything to be logged in debug (some code used during an upgrade). Is there anyway I can get the current logging level, set it to debug, run the specified code, then back to whatever it was before?