You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very glad to find such wonderful log open source. But I have some questions about the FileLogRecorder. As the document said, it support asynchronous and synchronous Mode,
but I read the code, it seems as if the parameters entry, currentQueue and synchronousMode are not used.
open override func record(message: String, for entry: LogEntry, currentQueue: DispatchQueue, synchronousMode: Bool)
{
var addNewline = true
let chars = message.characters
if chars.count > 0 {
let lastChar = chars[chars.index(before: chars.endIndex)]
addNewline = !newlines.contains(lastChar)
}
fputs(message, file)
if addNewline {
fputc(0x0A, file)
}
fflush(file)
}
The text was updated successfully, but these errors were encountered:
I'm very glad to find such wonderful log open source. But I have some questions about the FileLogRecorder. As the document said, it support asynchronous and synchronous Mode,
but I read the code, it seems as if the parameters entry, currentQueue and synchronousMode are not used.
The text was updated successfully, but these errors were encountered: