Logging to file and console