Added support for -log parameter using log4net. Writing additional messages to log.