writeAllToFile()

ability to write all logs to a file.

file opened in append mode.