Skip to content

Instance Method

report(error:metadata:file:function:line:)

Reports an Error to this Logger.
func report(error: any Error, metadata: @autoclosure () -> Logger.Metadata? = nil, file: String = #fileID, function: String = #function, line: UInt = #line)

Parameters

error

Error to log.