LogParameters

public struct LogParameters

Associated information that accompanies a log message

  • The name of the function that wrote the log message

    Declaration

    Swift

    public let function: String
  • The name of the file that wrote the log message

    Declaration

    Swift

    public let file: String
  • The line number within the file that wrote the log message

    Declaration

    Swift

    public let line: Int
  • The name of the class (if available) that wrote the log message

    Declaration

    Swift

    public let className: String?
  • The date and time that the log message was generated

    Declaration

    Swift

    public let timeStamp: Date
  • Create a new instance of LogParameters

    Declaration

    Swift

    public init(function: String, file: String, line: Int, className: String? = nil, timeStamp: Date = Date())
  • / Copies the struct but overwrites the className

    Declaration

    Swift

    public func withClassName(_ className: String) -> LogParameters