Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Wable-iOS/Core/Literals/String/StringLiterals+URL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension StringLiterals {
static let privacyPolicy = "https://joyous-ghost-8c7.notion.site/fff08b005ea18052ae0bf9d056c2e830"
static let feedbackForm = "https://docs.google.com/forms/d/e/1FAIpQLSf3JlBkVRPaPFSreQHaEv-u5pqZWZzk7Y4Qll9lRP0htBZs-Q/viewform?pli=1"
static let littly = "https://litt.ly/wable"
static let itunes = "https://itunes.apple.com/kr/lookup?bundleId=com.wable.Wable-iOS&country=kr"
static let itunes = "https://itunes.apple.com/kr/lookup?bundleId=com.wable.Wable-iOS"
static let appStore = "itms-apps://itunes.apple.com/app/apple-store/id6670352454"
}
}
29 changes: 28 additions & 1 deletion Wable-iOS/Core/Logger/WableLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum WableLogger {
private static let logger = Logger(subsystem: "com.app.wable", category: "general")

static func log(
_ message: String,
_ message: Any,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존에는 무조건 String 타입으로 넣어야만 했는데 Any 타입으로 변경되어 사용성이 높아진 점 너무 좋습니다!

for type: LogType,
file: String = #file,
function: String = #function,
Expand All @@ -23,6 +23,33 @@ enum WableLogger {
let formattedMessage = "[\(type.rawValue)/\(fileName)] \(line) line in \(function) ; \(message)"
logger.debug("\(formattedMessage, privacy: .public)")
}

static func network(
_ message: Any,
file: String = #file,
function: String = #function,
line: Int = #line
) {
log(message, for: .network, file: file, function: function, line: line)
}

static func debug(
_ message: Any,
file: String = #file,
function: String = #function,
line: Int = #line
) {
log(message, for: .debug, file: file, function: function, line: line)
}

static func error(
_ message: Any,
file: String = #file,
function: String = #function,
line: Int = #line
) {
log(message, for: .error, file: file, function: function, line: line)
}
}

// MARK: - LogType
Expand Down