Structure
LogRecord
Information about a specific log message, including information from the logger the message was logged to.
struct LogRecord
Overview
Note
This type is obsoleted by the new LogEvent type in swift-log.
Topics
Initializers
Instance Properties
var file: StringThe file the message was logged fromvar function: StringThe function the message was logged fromvar label: StringThe label of the logger the message was logged tovar level: Logger.LevelThe log level of the messagevar line: UIntThe line number in the file the message was logged fromvar loggerLevel: Logger.LevelThe log level of the logger the message was logged tovar loggerMetadata: Logger.MetadataThe metadata associated with the logger the message was logged tovar message: Logger.MessageThe logged messagevar metadata: Logger.Metadata?The metadata explicitly associated with the logged messagevar metadataProvider: Logger.MetadataProvider?The metadata provider associated with the logger the message was logged tovar source: StringThe source of the log message, usually the module name
Instance Methods
func allMetadata() -> [String : Logger.MetadataValue]Combine all of the metadata into a single set.