From 5fa1af38f0fd60e2639d2c0e963d1af9192794f7 Mon Sep 17 00:00:00 2001 From: Lukas Korba Date: Thu, 10 Aug 2023 08:51:46 +0200 Subject: [PATCH] [#1196] Check logging level priorities - the priorities for log levels have been updated [#1196] Check logging level priorities - changelog updated --- CHANGELOG.md | 4 ++++ Sources/ZcashLightClientKit/Utils/OSLogger.swift | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b58b4db3..bd984441 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Unreleased +### [#1196] Check logging level priorities +The levels for logging have been updated according to Log Levels in Swift. (https://www.swift.org/server/guides/libraries/log-levels.html). +There's one naming difference, instead of `notice` we use `event`. So the order is debug, info, event, warning, error. + ### [#1111] Change how the sync progress is stored inside the SDK `Initializer` has now a new parameter called `generalStorageURL`. This URL is the location of the directory diff --git a/Sources/ZcashLightClientKit/Utils/OSLogger.swift b/Sources/ZcashLightClientKit/Utils/OSLogger.swift index d470c560..bb225b3a 100644 --- a/Sources/ZcashLightClientKit/Utils/OSLogger.swift +++ b/Sources/ZcashLightClientKit/Utils/OSLogger.swift @@ -13,10 +13,10 @@ public class OSLogger: Logger { public enum LogLevel: Int { case debug - case error - case warning - case event case info + case event + case warning + case error } public let oslog: OSLog?