         }
 
         // Store in buffer for sending later
-        buffer.append((level, log))
+        buffer.append(Entry(level: level, date: date, payload: log))
 
         // Flush buffer threshold reached
         guard buffer.count > maxEntriesInBuffer else { return }

}

public extension LogServiceHTTP {
    /// Appends the log to the buffer that will be queued for later sending.
    ///
    /// The buffer size is determined in the initializer. Once the threshold is met,

//

#if os(iOS)
import Foundation.NSDate
import Foundation.NSData
import Foundation.NSJSONSerialization
import Foundation.NSNotification
