 
 final class G5CGMManager: DexCGMManager, TransmitterDelegate {
     private let transmitter: Transmitter?
+    let logger = DiagnosticLogger.shared!.forCategory("G5CGMManager")
 
     init(transmitterID: String?) {
         if let transmitterID = transmitterID {

        // NSLog(["event": "\(event)", "collectedAt": NSDateFormatter.ISO8601StrictDateFormatter().stringFromDate(NSDate())])
    }
}

    // MARK: - TransmitterDelegate

    func transmitter(_ transmitter: Transmitter, didError error: Error) {
        logger.error(error)
        delegate?.cgmManager(self, didUpdateWith: .error(error))
    }

    func transmitter(_ transmitter: Transmitter, didRead glucose: Glucose) {
        if !glucose.state.hasReliableGlucose {
            logger.error(String(describing: glucose.state))
        }
        
        guard glucose != latestReading, let quantity = glucose.glucose else {
            delegate?.cgmManager(self, didUpdateWith: .noData)
            return
