Structure
LogRecord
Information about a specific log message, including information from the logger the message was logged to.
struct LogRecord
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.
See Also
Miscellaneous
protocol ConsoleLoggerPrinterDefines a printer used by aConsoleLoggerto output log messages.struct DefaultConsoleLoggerPrinterThe defaultConsoleLoggerPrinterthat prints to standard output.