add logging to console and file