Coverted to log4net from NLog