Skip to content

Commit

Permalink
Add network logs #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Dec 13, 2024
1 parent 93c33a1 commit 88afe53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/OversizeCore/Global/Log.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public func logWithTime(_ text: String, terminator: String? = nil) {
#endif
}

@inlinable public func logNetwork(_ text: String, terminator: String? = nil) {
#if DEBUG
terminator == nil ? print("🌎 [NETWORK] \(text)") : print("🛎️ [NETWORK] \(text)", terminator: terminator!)
#endif
}

@inlinable public func logInfo(_ text: String, terminator: String? = nil) {
#if DEBUG
terminator == nil ? print("ℹ️ [INFO] \(text)") : print("ℹ️ [INFO] \(text)", terminator: terminator!)
Expand Down

0 comments on commit 88afe53

Please sign in to comment.