All Versions
17
Latest Version
Avg Release Cycle
58 days
Latest Release
-

Changelog History
Page 1

  • v5.0.1 Changes

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix 'Initialization of 'UnsafePointer' results in a dangling pointer' compiler warning.
    • ๐Ÿ›  Fixed crash in AsyncWriterProxy buffering when buffer is empty.
  • v5.0.0 Changes

    December 10, 2019

    โž• Added

    • โž• Added OutputStreamFormatter protocol to define formatters for use with byte output stream type Writers.
    • โž• Added TextFormat, an implementation of a OutputStreamFormatter that formats its output based on a supplied template (this is the default formatter for Console and File output).
    • โž• Added JSONFormat, an implementation of a OutputStreamFormatter that formats its output in standard JSON format.
    • โž• Added OutputStreamWriter protocol to define types that write byte streams to their output and accept OutputStreamFormatter types to format the output.
    • โž• Added LogEntry tuple type to Writer defining the formal types that a Writer writes.
    • โž• Added .buffer option for .async concurrency modes to allow for buffering when the writer is not available to write to its endpoint.
    • โž• Added protected data monitoring for FileWriter.Strategy.fixed on iOS for use with AsyncConcurrencyModeOption.buffer(writeInterval:strategy:). This allows TraceLog to be started up before protected data is available on iOS.

    Upated

    • Requires Swift 5 for compilation.
    • ๐Ÿ”„ Changed parameters to .async to include options for configuration of the mode (.async(options: Set<AsyncConcurrencyModeOption>) and .async(Writer, options: Set<AsyncConcurrencyModeOption>)).
    • ๐Ÿ”„ Changed Writer protocol log() method to write(_ entry: Writer.LogEntry) to make it easier to process messages by writers and formatters.
    • ๐Ÿ”„ Changed Writer return to Swift.Result<Int, FailedReason> to return instructions for TraceLog for buffering and error recovery.
    • ๐Ÿ”„ Changed ConsoleWriter to accept new OutputStreamFormatter instances allowing you to customize the output log format (default is TextFormat.)
    • ๐Ÿ”„ Changed FileWriter public interface
      • FileWriter now requires the log directory be passed in, removing default value of ./.
      • Removed the fileConfiguration parameter replacing with new strategy enum.
      • It now accepts the new OutputStreamFormatter instances allowing you to customize the output log format (default is TextFormat.)
    • ๐Ÿ”„ Changed FileWriter archive file name date format to "yyyyMMdd-HHmm-ss-SSS" (This was done for maximum compatibility between platforms and can be overridden in the FileConfiguration object passed at init.)
    • TextFormat to add var encoding: String.Encoding { get } requirement.
    • JSONFormat to add var encoding: String.Encoding { get } requirement.
    • ๐Ÿ“‡ Renamed AsyncOption to AsyncConcurrencyModeOption.
    • ๐Ÿ”„ Changed OutputStreamFormatter, it now requires var encoding: String.Encoding { get }.
    • ๐Ÿ“‡ Renamed FileWriter.FileStrategy to FileWriter.Strategy.
    • ๐Ÿ“‡ Renamed FileWriter.Strategy.RotateOption to FileWriter.Strategy.RotationOption.

    โœ‚ Removed

    • โœ‚ Removed TraceLogTestHarness module.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed logTrace when no trace level is passed. It's now the correct default value of 1 instead of 4 (issue #58).
  • v5.0.0-beta.4 Changes

    September 16, 2019

    โšก๏ธ Updated

    • Corrected availability of FileWriter and FileStrategyRotate so that they compile correctly on iOS.
  • v5.0.0-beta.3 Changes

    September 15, 2019

    โž• Added

    • โž• Added protected data monitoring for FileWriter.Strategy.fixed on iOS for use with AsyncConcurrencyModeOption.buffer(writeInterval:strategy:). This allows TraceLog to be started up before protected data is available on iOS.
  • v5.0.0-beta.2 Changes

    March 04, 2019

    โž• Added

    • โž• Added extensive HTML documentation including user guides and a complete API reference.

    ๐Ÿ”„ Changed

    • ๐Ÿ“‡ Renamed AsyncOption to AsyncConcurrencyModeOption.
    • ๐Ÿ”„ Changed OutputStreamFormatter, it now requires var encoding: String.Encoding { get }.
    • ๐Ÿ“‡ Renamed FileWriter.FileStrategy to FileWriter.Strategy.
    • ๐Ÿ“‡ Renamed FileWriter.Strategy.RotateOption to FileWriter.Strategy.RotationOption.

    โšก๏ธ Updated

    • TextFormat to add var encoding: String.Encoding { get } requirement.
    • JSONFormat to add var encoding: String.Encoding { get } requirement.
  • v5.0.0-beta.1 Changes

    February 25, 2019

    โž• Added

    • โž• Added OutputStreamFormatter protocol to define formatters for use with byte output stream type Writers.
    • โž• Added TextFormat, an implementation of a OutputStreamFormatter that formats its output based on a supplied template (this is the default formatter for Console and File output).
    • โž• Added JSONFormat, an implementation of a OutputStreamFormatter that formats its output in standard JSON format.
    • โž• Added OutputStreamWriter protocol to define types that write byte streams to their output and accept OutputStreamFormatter types to format the output.
    • โž• Added LogEntry tuple type to Writer defining the formal types that a Writer writes.
    • โž• Added .buffer option for .async concurrency modes to allow for buffering when the writer is not available to write to its endpoint.

    ๐Ÿ”„ Changed

    • Requires Swift 5 for compilation.
    • ๐Ÿ”„ Changed parameters to .async to include options for configuration of the mode (.async(options: Set<AsyncOption>) and .async(Writer, options: Set<AsyncOption>)).
    • ๐Ÿ”„ Changed Writer protocol log() method to write(_ entry: Writer.LogEntry) to make it easier to process messages by writers and formatters.
    • ๐Ÿ”„ Changed Writer return to Swift.Result<Int, FailedReason> to return instructions for TraceLog for buffering and error recovery.
    • ๐Ÿ”„ Changed ConsoleWriter to accept new OutputStreamFormatter instances allowing you to customize the output log format (default is TextFormat.)
    • ๐Ÿ”„ Changed FileWriter public interface
      • FileWriter now requires the log directory be passed in, removing default value of ./.
      • Removed the fileConfiguration parameter replacing with new strategy enum.
      • It now accepts the new OutputStreamFormatter instances allowing you to customize the output log format (default is TextFormat.)
    • ๐Ÿ”„ Changed FileWriter archive file name date format to "yyyyMMdd-HHmm-ss-SSS" (This was done for maximum compatibility between platforms and can be overridden in the FileConfiguration object passed at init.)

    โœ‚ Removed

    • โœ‚ Removed TraceLogTestHarness module.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed logTrace when no trace level is passed. It's now the correct default value of 1 instead of 4 (issue #58).
  • v4.0.1 Changes

    September 10, 2018

    ๐Ÿ›  Fixed

    • โž• Adding missing newline to ConsoleWriter output (issue #55).
  • v4.0.0 Changes

    September 06, 2018

    โž• Added

    • โž• Added mode to TraceLog.configuration to allow direct, async, or sync mode of operation. Sync & direct mode are useful for use cases that have short-lived processes (scripts) or require real-time logging.
    • โž• Added ability to set the concurrency mode individually for each Writer.
    • โž• Added FileWriter class for writing to local log files.
    • โž• Added TestHarness to assist developers in testing their own Writer types.
    • โž• Added shell utility to assist in testing Writer types.
    • โž• Added TraceLogTestTools module/library to allow use of new TestHarness and other Utilities.

    โœ‚ Removed

    • โœ‚ Removed all Xcode projects, Xcode projects are now generated using Swift Package Manager.
    • โฌ‡๏ธ Dropped iOS 8 support.
  • v4.0.0-beta.3 Changes

    July 06, 2018

    โž• Added

    • โž• Added FileWriter class for writing to local log files.
  • v4.0.0-beta.2 Changes

    June 26, 2018

    โž• Added

    • โž• Added TestHarness to assist developers in testing their own Writer types.
    • โž• Added shell utility to assist in testing Writer types.
    • โž• Added TraceLogTestTools module/library to allow use of new TestHarness and other Utilities.

    โœ‚ Removed

    • โœ‚ Removed the UnifiedLoggingWriter and instead using external AdaptiveSystemLogWriter which adapts to various platforms for latest system log.