Releases: brainfinance/StackdriverLogging
Releases · brainfinance/StackdriverLogging
Factory based instantiation + linux fixes
Changes:
- Fix crash related to
@autoreleasepoolon linux. - Fix log entries source location filepaths being fully logged, now only the relevant filepath information is logged.
- Add a configuration file from which you can control if timestamps are logged to your log file or not.
- Switch to a factory based instantiation system.
The bootstrapping now uses a factory and a config file, it looks like this:
try! StackdriverLogHandlerFactory.prepare(with: .init(logFilePath: "/var/log/my-app.log",
defaultLogLevel: .debug,
logTimestamps: true))
LoggingSystem.bootstrap { label in
return StackdriverLogHandlerFactory.make()
}1.0.1
Remove the costly FileManager.fileExists verification when instantiating a StackdriverLogHandler, checking if a FileHandle file has been moved or deleted is not of the Logger's concern.
Non-blocking logging with SwiftNIO NonBlockingFileIO
1.0.0 Fix byte buffer new line append