xdripswift/xdrip/Constants/ConstantsLog.swift

207 lines
8.1 KiB
Swift
Raw Normal View History

/// for use in OSLog
enum ConstantsLog {
/// for use in OSLog
static let subSystem = "xDrip"
/// for use in NSLog
static let tracePrefix = "xDrip-NSLog"
2024-01-03 16:13:30 +01:00
/// debuglogging
static let debuglogging = "xdripdebuglogging"
/// timestamp format for nslog
static let dateFormatNSLog = "y-MM-dd HH:mm:ss.SSSS"
// MARK: - Categories
/// for use in OSLog
2024-01-03 16:13:30 +01:00
static let categoryBlueToothTransmitter = "BlueToothTransmitter "
/// for use in cgm transmitter miaomiao
2024-01-03 16:13:30 +01:00
static let categoryCGMMiaoMiao = "CGMMiaoMiao "
2019-07-29 10:42:48 +02:00
/// for use in cgm transmitter bubble
2024-01-03 16:13:30 +01:00
static let categoryCGMBubble = "CGMBubble "
/// for use in cgm xdripg4
2024-01-03 16:13:30 +01:00
static let categoryCGMxDripG4 = "CGMxDripG4 "
/// for use in firstview
2024-01-03 16:13:30 +01:00
static let categoryRootView = "RootView "
/// calibration
2024-01-03 16:13:30 +01:00
static let categoryCalibration = "Calibration "
/// G5
2024-01-03 16:13:30 +01:00
static let categoryCGMG5 = "CGMG5 "
/// G7
static let categoryCGMG7 = "CGMG7 "
/// watlaa
2024-01-03 16:13:30 +01:00
static let categoryWatlaa = "Watlaa"
/// GNSEntry
2024-01-03 16:13:30 +01:00
static let categoryCGMGNSEntry = "CGMGNSEntry "
/// Blucon
2024-01-03 16:13:30 +01:00
static let categoryBlucon = "Blucon "
/// Libre2
2024-01-03 16:13:30 +01:00
static let categoryCGMLibre2 = "Libre2 "
/// core data manager
2024-01-03 16:13:30 +01:00
static let categoryCoreDataManager = "CoreDataManager "
/// application data bgreadings
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataBgReadings = "ApplicationDataBgReadings "
/// application data Treatments
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataTreatments = "ApplicationDataTreatments "
/// application data calibrations
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataCalibrations = "ApplicationDataCalibrations "
/// application data sensors
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataSensors = "ApplicationDataSensors "
/// application data alerttypes
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataAlertTypes = "ApplicationDataAlertTypes "
/// application data alertentries
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataAlertEntries = "ApplicationDataAlertEntries "
/// application data for M5Stack
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataM5Stacks = "ApplicationDataM5Stacks "
/// application data for M5Stack
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataWatlaa = "ApplicationDataWatlaa"
2020-02-08 00:18:23 +01:00
/// application data for BLEPeripheral
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataBLEPeripheral =
"ApplicationDataBLEPeripheral"
2020-02-08 00:18:23 +01:00
/// application data for DexcomG5
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataDexcomG5 = "ApplicationDataDexcomG5"
2020-02-08 00:18:23 +01:00
/// application for for M5StackName
2024-01-03 16:13:30 +01:00
static let categoryApplicationDataM5StackNames = "ApplicationDataM5StackNames "
/// nightscout uploader
static let categoryNightScoutUploadManager = "NightScoutUploadManager "
/// nightscout follow
static let categoryNightScoutFollowManager = "NightScoutFollowManager "
/// nightscout follow
2024-01-03 16:13:30 +01:00
static let categoryLibreLinkUpFollowManager = "LibreLinkUpFollowManager "
/// alertmanager
static let categoryAlertManager = "AlertManager "
/// playsound
static let categoryPlaySound = "PlaySound "
/// healthkit manager
static let categoryHealthKitManager = "HealthKitManager "
/// SettingsViewHealthKitSettingsViewModel
static let categorySettingsViewHealthKitSettingsViewModel = "SettingsViewHealthKitSettingsViewModel"
/// dexcom share upload manager
static let categoryDexcomShareUploadManager = "DexcomShareUploadManager "
2019-08-02 23:03:27 +02:00
/// droplet 1
static let categoryCGMDroplet1 = "CGMDroplet1 "
/// bluereader
static let categoryCGMBlueReader = "CGMBlueReader "
2021-02-18 22:53:21 +01:00
/// atom
static let categoryCGMAtom = "categoryCGMAtom "
/// LibreOOPClient
static let categoryLibreOOPClient = "LibreOOPClient "
2020-05-26 14:08:06 +02:00
/// libreDataParser
static let categoryLibreDataParser = "LibreDataParser "
2019-09-12 08:37:35 +02:00
/// for use in M5Stack
static let categoryM5StackBluetoothTransmitter = "M5StackBluetoothTransmitter "
/// BluetoothPeripheralManager logging
static let categoryBluetoothPeripheralManager = "BluetoothPeripheralManager "
2019-09-12 08:37:35 +02:00
/// StatusChartsManager logging
static let categoryGlucoseChartManager = "GlucoseChartManager "
/// SettingsViewCalendarEventsSettingsViewModel logging
static let categorySettingsViewCalendarEventsSettingsViewModel = "SettingsViewCalendarEventsSettingsViewModel"
/// CalendarManager logging
static let categoryCalendarManager = "CalendarManager "
/// WatchManager logging
static let categoryWatchManager = "WatchManager "
/// bluetoothPeripheralViewController
2020-05-02 22:54:03 +02:00
static let categoryBluetoothPeripheralViewController = "blePeripheralViewController "
2020-05-26 14:08:06 +02:00
/// nightscout view model
2020-05-02 22:54:03 +02:00
static let categoryNightScoutSettingsViewModel = "nightScoutSettingsViewModel "
2020-05-26 14:08:06 +02:00
/// trace
2020-05-02 22:54:03 +02:00
static let categoryTraceSettingsViewModel = "TraceSettingsViewModel"
/// housekeeping
static let categoryHouseKeeper = "HouseKeeper "
/// soonzeParameter accessor
static let categoryApplicationDataSnoozeParameter = "ApplicationDataSnoozeParameter"
2020-12-07 23:28:28 +01:00
/// libre NFC
static let categoryLibreNFC = "categoryLibreNFC"
2021-01-10 10:33:25 +01:00
/// for use in cgm transmitter bubble
static let categoryLibreSensorType = "categoryLibreSensorType "
/// for use in Libre2BLEUtilities
static let categoryLibre2BLEUtilities = "Libre2BLEUtilities "
/// for use in Libre2BLEUtilities
static let categoryAppDelegate = "AppDelegate "
2022-05-09 00:31:51 +02:00
/// for use in DataExporter
static let categoryDataExporter = "DataExporter "
// for use in LoopManager
static let categoryLoopManager = "LoopManager "
/// for use in Bg Readings view
static let categoryBgReadingsView = "BgReadingsView "
/// SettingsViewCalendarEventsSettingsViewModel logging
static let categorySettingsViewDataSourceSettingsViewModel = "SettingsViewDataSourceSettingsViewModel"
2024-01-03 16:13:30 +01:00
/// SettingsViewNotificationsSettingsViewModel logging
static let categorySettingsViewNotificationsSettingsViewModel =
"NotificationsViewModel "
/// for use in LiveActivityManager
static let categoryLiveActivityManager = "LiveActivityManager "
Libre3 and/or Dexcom G7 and/or OmniPod as heartbeat - Libre 3 or Dexcom G7 as heartbeat - Libre 3 as heartbeat: avoids the need for audioPlayer that keeps the app alive in the background. When Libre 3 sends data, xDrip4iOS will wake up and fetch a reading from LibreView - Dexcom G7 as heartbeat: only useful in combination with Loop. Loop must read the Dexcom G7 readings and upload to NightScout. xDrip4iOS will wake up when G7 sends data and will fetch the latest reading from NightScout. This occurs with a delay (Thread.sleep) of 1 second, to give time to loop to upload the reading to NightScout. Sometimes xDrip4iOS is still to early to fetch the reading. In that case, it may help to delete the heartbeat and recreate it. - OmniPod as heartbeat: for OmniPod users, this is a useful additional heartbeat. OmniPod has the interesting 'feature' to disconnect and reconnect every few minutes. Which allows to call the heartbeat function. - M5Stack as heartbeat: this is implemented as part of the M5Stack transmitter, it does not appear in the list of heartbeat devices. M5Stack will wake up xDrip4iOS if it didn't receive a reading from xDrip4iOS for more than 5 minutes. This allows xDrip4iOS to download the latest reading and send it to the M5Stack. Needs the latest release of M5stack or M5Stick-C software : https://github.com/JohanDegraeve/M5_NightscoutMon or https://github.com/JohanDegraeve/M5_StickC_xdrip_iOS - the change required also to re-enable alarms, notifications, badge counter, ... when user has chosen followerBackgroundKeepAliveType disabled - To use Libre 3 has heartbeat: - First connect to Libre 3 with official Libre 3 app - when connected, go to the iOS settings and read and note the name of the Libre (it's not something with ABBOTT in it, it's more like a random string) - force close the Libre 3 app - in xDrip4iOS, go to the bluetooth section - add a new transmitter of type HeartBeat - select Libre 3 - as transmitter id, fill in the name you read in the iOS settings, just 4 or 5 characters is enough. It's case insensitive. - click the scan button. (you will not be asked to do NFC scan) - wait till connected - now reopen the official Libre 3 app - To use Dexcom G7 as heartbeat: - make sure you connected at least once to the Dexcom G7 with the official Dexcom app and/or Loop. - Not necessary to force close other apps (like Official Dexcom G7 app and Loop) - go to the iOS settings and read and note the name of the Dexcom G7. It's case insensitive. - in xDrip4iOS, go to the bluetooth section - add a new transmitter of type HeartBeat - select Dexcom G7 - as transmitter id, fill in the name you read in the iOS settings. - click the scan button. (you will not be asked to do NFC scan) - wait till connected - To use OmniPod as heartbeat: - Force close any other app that connects to the OmniPod (that should only be Loop) - - in xDrip4iOS, go to the bluetooth section - add a new transmitter of type HeartBeat - select OmniPod - click the scan button - wait till connected - you can now reopen Loop
2024-01-29 23:05:08 +01:00
/// for use in Libre3HeartBeatTransmitter
static let categoryHeartBeatLibre3 = "HeartBeatLibre3 "
/// for use in DexcomG7HeartBeatTransmitter
static let categoryHeartBeatG7 = "HeartBeatG7 "
/// for use in LibreViewFollowManager
static let categoryLoopFollowManager = "LoopFollowManager "
/// for use in Omni¨PodHeartBeatTransmitter
static let categoryHeartBeatOmnipod = "HeartBeatOmnipod "
}