Created
March 27, 2024 06:33
-
-
Save hishd/f4b9f712521a3a0af4cbde76020be18d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Logger+Extensions.swift | |
// SkyWizard | |
// | |
// Created by Hishara Dilshan on 2023-10-10. | |
// | |
import OSLog | |
extension Logger { | |
private static var subsystem = Bundle.main.bundleIdentifier! | |
static let viewCycle = Logger(subsystem: subsystem, category: "viewcycle") | |
// Logger.viewCycle.notice("Notice example") | |
// Logger.viewCycle.info("Info example") | |
// Logger.viewCycle.debug("Debug example") | |
// Logger.viewCycle.trace("Trace example") | |
// Logger.viewCycle.warning("Warning example") | |
// Logger.viewCycle.error("Error example") | |
// Logger.viewCycle.fault("Fault example") | |
// Logger.viewCycle.critical("Critical example") | |
static let statistics = Logger(subsystem: subsystem, category: "statistics") | |
// Logger.statistics.debug("Statistics example") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment