스플래시 페이지 추가
This commit is contained in:
23
SodaLive/Sources/Utils/Log.swift
Normal file
23
SodaLive/Sources/Utils/Log.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// Log.swift
|
||||
// yozm
|
||||
//
|
||||
// Created by klaus on 2022/05/20.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
func DEBUG_LOG(_ msg: String, file: String = #file, function: String = #function, line: Int = #line) {
|
||||
#if DEBUG
|
||||
let filename = file.split(separator: "/").last ?? ""
|
||||
let funcName = function.split(separator: "(").first ?? ""
|
||||
print("👻 [\(filename)] \(funcName)(\(line)): \(msg)")
|
||||
#endif
|
||||
}
|
||||
|
||||
func ERROR_LOG(_ msg: String, file: String = #file, function: String = #function, line: Int = #line) {
|
||||
let filename = file.split(separator: "/").last ?? ""
|
||||
let funcName = function.split(separator: "(").first ?? ""
|
||||
print("🤯😡 [\(filename)] \(funcName)(\(line)): \(msg)")
|
||||
}
|
||||
|
Reference in New Issue
Block a user