Improved logging, support for logging into file and console at the same time