← Back to Documentation Home

STRUCT

LogEntry

public struct LogEntry

Log entry structure

Properties

timestamp

public let timestamp: Date

level

public let level: LogLevel

message

public let message: String

file

public let file: String

function

public let function: String

line

public let line: Int

Methods

init(level:message:file:function:line:)

public init(level: LogLevel, message: String, file: String = #file, function: String = #function, line: Int = #line)