changed logging to use log4net instead of stupid logging