tonystone / tracelog

TraceLog is a highly configurable, flexible, portable, and simple to use debug logging system for Swift and Objective-C applications running on Linux, macOS, iOS, watchOS, and tvOS.
https://tonystone.io/tracelog
Apache License 2.0
53 stars 15 forks source link

Added `.buffering option for `.async` concurrency modes. #71

Closed tonystone closed 5 years ago

tonystone commented 5 years ago

Added .buffering option for .async concurrency modes to allow for buffering when the writer is not available to write to its endpoint.

codecov[bot] commented 5 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (release-5.0@f7ca545). Click here to learn what that means. The diff coverage is 96.52%.

@@              Coverage Diff               @@
##             release-5.0      #71   +/-   ##
==============================================
  Coverage               ?   99.29%           
==============================================
  Files                  ?       24           
  Lines                  ?      711           
  Branches               ?        0           
==============================================
  Hits                   ?      706           
  Misses                 ?        5           
  Partials               ?        0
Impacted Files Coverage Δ
Sources/TraceLog/Proxies/SyncWriterProxy.swift 100% <100%> (ø)
Sources/TraceLog/ConcurrencyMode.swift 100% <100%> (ø)
Sources/TraceLog/Proxies/DirectWriterProxy.swift 100% <100%> (ø)
Sources/TraceLog/Writers/ConsoleWriter.swift 100% <100%> (ø)
Sources/TraceLog/Utilities/BlockTimer.swift 100% <100%> (ø)
Sources/TraceLogTestHarness/BufferWriter.swift 100% <100%> (ø)
Sources/TraceLog/Writers/FileWriter.swift 100% <100%> (ø)
Sources/TraceLog/Proxies/AsyncWriterProxy.swift 95.19% <95.09%> (ø)
codecov[bot] commented 5 years ago

Codecov Report

Merging #71 into release-5.0 will increase coverage by 0.02%. The diff coverage is 100%.

@@               Coverage Diff               @@
##           release-5.0      #71      +/-   ##
===============================================
+ Coverage        99.86%   99.88%   +0.02%     
===============================================
  Files               26       27       +1     
  Lines              719      852     +133     
===============================================
+ Hits               718      851     +133     
  Misses               1        1
Impacted Files Coverage Δ
...al/Utilities/Streams/OutputStreamError+Posix.swift 100% <ø> (ø)
Sources/TraceLog/Internal/Utilities/Mutex.swift 100% <ø> (ø)
...tilities/Streams/FileOutputStreamError+Posix.swift 100% <ø> (ø)
Sources/TraceLog/SDK/RuntimeContext.swift 100% <ø> (ø)
Sources/TraceLog/TraceLog.swift 100% <ø> (ø) :arrow_up:
Sources/TraceLog/Internal/Logger.swift 100% <ø> (ø)
Sources/TraceLog/SDK/LogLevel.swift 100% <ø> (ø)
Sources/TraceLog/SDK/StaticContext.swift 100% <ø> (ø)
...ces/TraceLog/Writers & Formatters/TextFormat.swift 100% <ø> (ø)
...ces/TraceLog/Writers & Formatters/JSONFormat.swift 100% <ø> (ø)
... and 15 more