LXEndpoint

public protocol LXEndpoint

Objects that conform to the Endpoint protocol may be used by an LXLogger instance as Log Entry destinations.

  • The minimum Priority Level a Log Entry must meet to be accepted by this Endpoint.

    Declaration

    Swift

    var minimumPriorityLevel: LXPriorityLevel
  • The formatter used by this Endpoint to serialize a Log Entry’s dateTime property to a string.

    Declaration

    Swift

    var dateFormatter: LXDateFormatter
  • The formatter used by this Endpoint to serialize each Log Entry to a string.

    Declaration

    Swift

    var entryFormatter: LXEntryFormatter
  • Indicates whether this Endpoint requires a newline character appended to each serialized Log Entry string.

    Declaration

    Swift

    var requiresNewlines: Bool
  • Writes a serialized Log Entry string to the final destination this Endpoint represents.

    Declaration

    Swift

    func write(string: String) -> Void

    Parameters

    string

    The Log Entry, after being serialized to a string by the entryFormatter.