Files
Pulse/Sources/PulseCore/RemoteLogger/RemoteLogger-Store.swift
T
2021-11-08 16:45:55 -05:00

21 lines
575 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// The MIT License (MIT)
//
// Copyright (c) 20202021 Alexander Grebenyuk (github.com/kean).
import Foundation
import Network
import Combine
import SwiftUI
// These methods are not designed to be used publicly.
@available(iOS 14.0, tvOS 14.0, watchOS 7.0, macOS 11.0, *)
extension RemoteLogger {
public static func store(_ message: LoggerStore.Message, into store: LoggerStore) {
store.storeMessage(message)
}
public static func store(_ message: LoggerStore.NetworkMessage, into store: LoggerStore) {
store.storeRequest(message)
}
}