fn write_record(level: LogLevel, target: &str, message: &str)
Writes a record for target, cutting overlong messages first.
target