Structureswift-package-manager 6.0.3Basics
Diagnostic
Observability.swift:292struct Diagnostic
struct Diagnostic
import Basics
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
init(severity: Severity, message: String, metadata: ObservabilityMetadata?)
static func debug(_ message: String, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func debug(_ message: CustomStringConvertible, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func error(_ message: String, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func error(_ message: CustomStringConvertible, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func error(_ error: Error, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func info(_ message: String, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func info(_ message: CustomStringConvertible, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func warning(_ message: String, metadata: ObservabilityMetadata? = .none) -> Diagnostic
static func warning(_ message: CustomStringConvertible, metadata: ObservabilityMetadata? = .none) -> Diagnostic
var description: String { get }
let message: String
var metadata: ObservabilityMetadata? { get }
let severity: Severity
enum Severity