Continue logging at end of file
This commit is contained in:
parent
3dba02c2cf
commit
d7f875cf88
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user