Skip to content

Commit

Permalink
Merge pull request #6 from oversizedev/develop
Browse files Browse the repository at this point in the history
Add network logs #patch
  • Loading branch information
aromanov91 authored Dec 13, 2024
2 parents 7d54b5e + 88afe53 commit 4b5c914
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 4b5c914

Please sign in to comment.