Global Variables

The following global variables are available globally.

  • This notification is posted whenever a FileEndpoint-family Endpoint instance is about to rotate to a new log file.

    The notification’s object is the actual Endpoint instance that is rotating files. The userInfo dictionary contains the current and next URLs, at the LXFileEndpointRotationCurrentURLKey and LXFileEndpointRotationNextURLKey keys, respectively.

    This notification is send before the rotation occurs.

    Declaration

    Swift

    public let LXFileEndpointWillRotateFilesNotification: String = "info.logkit.endpoint.fileEndpoint.willRotateFiles"
  • This notification is posted whenever a FileEndpoint-family Endpoint instance has completed rotating to a new log file.

    The notification’s object is the actual Endpoint instance that is rotating files. The userInfo dictionary contains the current and previous URLs, at the LXFileEndpointRotationCurrentURLKey and LXFileEndpointRotationPreviousURLKey keys, respectively.

    This notification is send after the rotation occurs, but before any pending Log Entries have been written to the new file.

    Declaration

    Swift

    public let LXFileEndpointDidRotateFilesNotification:  String = "info.logkit.endpoint.fileEndpoint.didRotateFiles"
  • The value found at this key is the NSURL of the sender’s previous log file.

    Declaration

    Swift

    public let LXFileEndpointRotationPreviousURLKey:      String = "info.logkit.endpoint.fileEndpoint.previousURL"
  • The value found at this key is the NSURL of the sender’s current log file.

    Declaration

    Swift

    public let LXFileEndpointRotationCurrentURLKey:       String = "info.logkit.endpoint.fileEndpoint.currentURL"
  • The value found at this key is the NSURL of the sender’s next log file.

    Declaration

    Swift

    public let LXFileEndpointRotationNextURLKey:          String = "info.logkit.endpoint.fileEndpoint.nextURL"