Log console message to file