Instance Subscriptmochidev.swift-webpush 0.4.2WebPush
subscript(metadataKey:)
PrintLogHandler.swift:40subscript(metadataKey metadataKey: String) -> Logger.Metadata.Value? { get set }
subscript(metadataKey metadataKey: String) -> Logger.Metadata.Value? { get set }
s7WebPush15PrintLogHandlerV11metadataKey7Logging6LoggerV13MetadataValueOSgSS_tcip
What are these?4CDGT
import WebPush
struct PrintLogHandler
A simple log handler that uses formatted print statements.
@frozen struct String
A Unicode string value that is a collection of characters.
struct Logger
A Logger
is the central type in SwiftLog
. Its central function is to emit log messages using one of the methods corresponding to a log level.
typealias Metadata = [String : MetadataValue]
Metadata
is a typealias for [String: Logger.MetadataValue]
the type of the metadata storage.
init(label: String, logLevel: Logger.Level = .info, metadataProvider: Logger.MetadataProvider? = nil)
var logLevel: Logger.Level
var metadata: Logger.Metadata { get set }
var metadataProvider: Logger.MetadataProvider?
func log(level: Logger.Level, message: Logger.Message, metadata explicitMetadata: Logger.Metadata?, source: String, file: String, function: String, line: UInt)