Added Error logging

Added log4net for error logging.