mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
26 lines
753 B
Swift
26 lines
753 B
Swift
//
|
|
// Logger.swift
|
|
// Meshtastic
|
|
//
|
|
// Copyright(c) Garth Vander Houwen 6/3/24.
|
|
//
|
|
|
|
import OSLog
|
|
|
|
extension Logger {
|
|
|
|
/// The logger's subsystem.
|
|
private static var subsystem = Bundle.main.bundleIdentifier!
|
|
|
|
/// All logs related to data such as decoding error, parsing issues, etc.
|
|
static let data = Logger(subsystem: subsystem, category: "🗄️ Data")
|
|
|
|
/// All logs related to the mesh
|
|
static let mesh = Logger(subsystem: subsystem, category: "🕸️ Mesh")
|
|
|
|
/// All logs related to services such as network calls, location, etc.
|
|
static let services = Logger(subsystem: subsystem, category: "🍏 Services")
|
|
|
|
/// All logs related to tracking and analytics.
|
|
static let statistics = Logger(subsystem: subsystem, category: "📈 Stats")
|
|
}
|