flush

fun flush()

Flushes the current log queue to file and rotates if necessary.