From 302d8d0d23538aa238262755419f75cfaad344d2 Mon Sep 17 00:00:00 2001 From: 0xSiddhant Date: Fri, 5 Jan 2024 13:32:05 +0530 Subject: [PATCH] fix position --- .../project.xcworkspace/xcshareddata/swiftpm/Package.resolved | 2 +- Sources/SwiftLogger/Log.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Example/SwiftLoggerExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Example/SwiftLoggerExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index f7a95b6..8dc1fc6 100644 --- a/Example/SwiftLoggerExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Example/SwiftLoggerExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -6,7 +6,7 @@ "location" : "https://github.com/0xSiddhant/SwiftLogger.git", "state" : { "branch" : "main", - "revision" : "2c2a6a04a9c01e44c122e52ff1f5652b515d8653" + "revision" : "31d61d7ecb352cfb9618775018ac770046fe487b" } } ], diff --git a/Sources/SwiftLogger/Log.swift b/Sources/SwiftLogger/Log.swift index b8becc5..6ed2c4b 100644 --- a/Sources/SwiftLogger/Log.swift +++ b/Sources/SwiftLogger/Log.swift @@ -46,7 +46,7 @@ enum Log { fileprivate static func handleLog(level: LogLevel, str: String, shouldLogContext: Bool, context: Context) { var logComponents = [Date().toString(), "[\(level.prefix)]"] if shouldLogContext { - logComponents.insert("\(context.description)", at: 1) + logComponents.append("\(context.description)") } logComponents.append(" -> \(str)")