Skip to content

Releases: brainfinance/StackdriverLogging

Factory based instantiation + linux fixes

18 Nov 21:31
51fed78

Choose a tag to compare

Changes:

  • Fix crash related to @autoreleasepool on 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

29 Jul 14:51

Choose a tag to compare

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

18 Jul 19:28

Choose a tag to compare

1.0.0

Fix byte buffer new line append