OSLog
public extension OSLog
Commonly used OSLog instances for use with os_log functions
os_log(.debug, log: .analytics, "%@ %@", #function, String(describing: self))
-
Use to log analytics related info.
Declaration
Swift
static let analytics: OSLog -
Use to log within
extensionstatements.Declaration
Swift
static let `extension`: OSLog -
Use to log network request/response related info.
Declaration
Swift
static let network: OSLog -
Use to log model related info (e.g.
CoreData).Declaration
Swift
static let model: OSLog -
Use to log within view classes (e.g.
NSView,UIView).Declaration
Swift
static let view: OSLog -
Use to log within view model classes.
Declaration
Swift
static let viewModel: OSLog -
Use to log within view controller classes (e.g.
NSViewController,UIViewController).Declaration
Swift
static let viewController: OSLog
View on GitHub
Install in Dash
OSLog Extension Reference