Commit Graph

222 Commits

Author SHA1 Message Date
Florian Friedrich a52910aa6a Distinguish cocoapods builds 2025-07-22 14:47:29 +02:00
Florian Friedrich 307f95f77d Only import if needed 2025-07-22 09:20:07 +02:00
Florian Friedrich 57a80f916a Fix build condition 2025-07-22 09:10:53 +02:00
Florian Friedrich 29098357b6 Split up Swift files, add support for Swift 6.0 and 6.1, drop support for Swift pre 5.10 2025-07-22 08:46:16 +02:00
Florian Friedrich 76d2eba4e2 Fix warnings about global mutable state in concurrency. Fixes #1441 2025-04-15 08:05:38 +02:00
Florian Friedrich b78b42e80a Simplify 2025-04-07 09:10:06 +02:00
Florian Friedrich 099b8fec72 Allow custom NSFileManager's on DDLogFileManager's. Resolves #1434 2025-04-07 09:10:06 +02:00
Florian Friedrich bcd66d4d99 Extend doc comment regarding file locking 2025-01-10 15:50:23 +01:00
Florian Friedrich b7ffea156e Make file locking optional 2025-01-10 15:50:23 +01:00
ffried 4986a03eb1 Update copyright from 2024 to 2025 2025-01-07 08:54:43 +01:00
Florian Friedrich 9ccda00c86 Fix warning 2024-10-02 08:38:57 +02:00
Florian Friedrich a064d3055a Add log message if log file handle is nil 2024-08-12 10:53:33 +02:00
Florian Friedrich c4b31322cd Fix potential deadlock of file descriptors when a exception is raised during log data writing 2024-08-12 10:33:01 +02:00
Florian Friedrich 94683f073a Make global vars concurrency safe, prepare for Swift 6.0 2024-07-11 12:22:01 +02:00
Florian Friedrich c7e5817899 Change designated initializer on DDOSLogger after version bump 2024-05-10 08:21:55 +02:00
Florian Friedrich 2fae773ee0 Disable force cast rule for necessary force cast 2024-04-16 17:34:07 +02:00
Florian Friedrich 2566f12848 Fix various code style issues 2024-04-16 17:27:18 +02:00
Florian Friedrich 1e039597bf Explicitly qualify usages of swift-log Logger to avoid ambiguity 2024-03-08 07:41:03 +01:00
Florian Friedrich 8186b7f253 Add DDOSLogLevelMapper 2024-03-08 07:41:03 +01:00
Florian Friedrich 35390787f3 Raise DDLogWarn messages to .error in OSLog, cleanup DDOSLogger 2024-03-08 07:41:03 +01:00
Florian Friedrich bb2f63eff5 Extend privacy report with empty list of collected data types 2024-02-07 07:27:27 +01:00
Florian Friedrich b500c3e86b Fix deallocation crash in registered classes. Fixes #1406 2024-02-06 08:31:28 +01:00
Florian Friedrich 6a0a559d64 Add privacy manifest 2024-02-05 11:25:16 +01:00
Florian Friedrich 16815175e0 Fix #1386 again by adding a missing return and adjusting the preprocessor conditionals 2024-01-10 09:24:49 +01:00
ffried 3eeda4aa39 Update copyright from 2023 to 2024 2024-01-03 17:38:14 +01:00
Florian Friedrich 2df0a9e228 Fix test, remove assertion 2023-12-18 10:11:13 +01:00
Florian Friedrich 764a11fecb Add missing method implementation. 2023-12-18 09:49:42 +01:00
Florian Friedrich 1000dd8e49 Add method for manually cleaning up log files using a log file manager.
Implements #1398
2023-12-18 09:43:59 +01:00
Florian Friedrich 2223a0e7b3 Only cleanup files on configuration change if the manager is used by a file logger.
Fixes #1398
2023-12-18 09:43:16 +01:00
Florian Friedrich 57d846b910 Cleanup 2023-12-18 09:40:32 +01:00
Florian Friedrich 135d035754 Remove code duplication by creating convenience assertion macros 2023-12-07 16:10:40 +01:00
Florian Friedrich 09cf1f51a4 Fix C++ warning 2023-12-07 16:08:32 +01:00
Florian Friedrich 18b4986731 Fix warnings 2023-12-07 16:08:32 +01:00
Florian Friedrich 9681d618e6 Pass DDLogMessage on to serializer 2023-10-31 09:12:34 +01:00
Florian Friedrich a5634574d6 Allow different binary formats for DDFileLogger 2023-10-31 09:12:34 +01:00
Florian Friedrich 868ec52286 Use iOS code branch on iOS 17 simulator or newer. Fixes #1386 2023-10-18 12:07:50 +02:00
Florian Friedrich 3742e02609 Add convenience functions 2023-10-09 11:40:03 +02:00
Florian Friedrich bc152f6e71 Add more DDLogMessageFormat tests, escape percent signs in interpolated format to potentially fix crashes 2023-09-06 17:47:12 +02:00
Thilo Molitor bce8b822b9 Use flock in file logger to coordinate writes with other processes 2023-09-04 07:40:59 +02:00
Thilo Molitor bd403c6dfd Fix #1357
See #1357 for all the details
2023-08-23 15:54:16 +02:00
Thilo Molitor 0b6fe59de0 Fix #1358 2023-08-23 13:23:53 +02:00
Florian Friedrich 80e3a0df30 Fix deprecations 2023-08-14 08:39:13 +02:00
Florian Friedrich 455409850d Cleanup DDTTYLogger, fix deprecation (fixes #1352) 2023-08-13 13:33:00 +02:00
Florian Friedrich 0fc8b31700 Replace %s with modern Objective-C string creation 2023-07-26 19:58:36 +02:00
Florian Friedrich 29bca377c9 Preserve message format in DDLogMessage, add DDLogMessageFormat for Swift 2023-07-12 16:09:12 +02:00
Florian Friedrich 851ccad86b Cancel active dispatch_source before replacing it. Fixes gh-1341 2023-06-04 14:12:17 +02:00
Nick Brook 448f1312f9 Further improved date comparison 2023-05-16 13:36:47 +02:00
Nick Brook 31f3ff92ca Fix warning about cast from Nullable to Nonnull 2023-05-16 13:36:47 +02:00
Kris Kline cb050c628c Adding missing 'void' in function declarations
* Addresses a build warning in Xcode 14.3
2023-05-01 17:00:17 +02:00
Florian Friedrich 27ae13709d Fix indention 2023-03-19 17:00:25 +01:00