Log to file AND console?

If I issue ofLogToFile(“log.txt”); then it only updates the log.txt file. Any chance I can get it live in the console as well as to text? Can’t seem to find any documentation for this.