support for logging to file instead of console