     ///   - notificationCenter: A notification dispatch mechanism that registers observers for flushing the buffer at certain app lifecycle events.
     public init(
         urlRequest: URLRequest,
-        bufferEncode: @escaping ([(LogAPI.Level, String)]) -> Data?,
+        bufferEncode: @escaping ([Entry]) -> Data?,
         maxEntriesInBuffer: Int,
         minFlushLevel: LogAPI.Level = .none,
         isDebug: Bool,

//

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

    private let networkManager: NetworkManager

    /// Closure that converts the buffer to data.
    private let bufferEncode: ([Entry]) -> Data?

    /// Stores the log entries in memory until it is ready to send.
    private var buffer: [Entry] = []

    /// The initializer of the log destination.
    ///
