Fixed problems with log4net.