Replaces some invalid filenames to something that can be stored on the filesystem.
Verifies that a log directory exists, complaining if it's invalid, creating it if it doesn't exist.
Writes all buffered log lines to disk.
Writes a single log buffer to disk.
Logs an event to disk.
A struct containing lines to write to a log file when next flushing such.
Implementation of Printer plugin functionality that concerns logging. For internal use.
The IRCEvent-annotated handlers must be in the same module as the PrinterPlugin, but these implementation functions can be offloaded here to limit module size a bit.