 import CoreData
 import EurofurenceWebAPI
+import Logging
 
 @objc(Message)
 public class Message: NSManagedObject {
+    
+    private static let logger = Logger(label: "Message")
     
     @nonobjc class func fetchRequest() -> NSFetchRequest<Message> {
         return NSFetchRequest<Message>(entityName: "Message")

                    
                    refreshObject()
                } catch {
                    print("")
                }
            }
            

                try managedObjectContext.save()
            } 
        } catch {
            let metadata: Logger.Metadata = [
                "ID": .string(messageIdentifier),
                "Error": .string(String(describing: error))
            ]
            
            Self.logger.error("Failed to record pending read state update", metadata: metadata)
        }
    }
    
