bbdf3e7c6f
The Logging API document says that `os_log` is one of the legacy logging symbols. However, this library needs to be supported below iOS 14 so `log(level:_:)` cannot be used.
18 lines
481 B
Swift
18 lines
481 B
Swift
// Copyright 2018-Present Shin Yamamoto. All rights reserved. MIT license.
|
|
|
|
import os.log
|
|
|
|
let msg = StaticString("%{public}@")
|
|
let sysLog = OSLog(subsystem: Logging.subsystem, category: Logging.category)
|
|
#if FP_LOG
|
|
let devLog = OSLog(subsystem: Logging.subsystem, category: "\(Logging.category):dev")
|
|
#else
|
|
let devLog = OSLog.disabled
|
|
#endif
|
|
|
|
struct Logging {
|
|
static let subsystem = "com.scenee.FloatingPanel"
|
|
static let category = "FloatingPanel"
|
|
private init() {}
|
|
}
|