Continue logging at end of file

This commit is contained in:
christophhagen 2020-05-26 16:06:42 +02:00
parent 3dba02c2cf
commit d7f875cf88

View File

@ -33,7 +33,8 @@ enum Log {
try "[\(date)] Failed to start log.\n".write(to: url, atomically: false, encoding: .utf8)
return
}
file?.write("[\(date)] Logging started.\n".data(using: .utf8)!)
f.seekToEndOfFile()
f.write("[\(date)] Logging started.\n".data(using: .utf8)!)
file = f
}