Classes

The following classes are available globally.

  • An Endpoint that prints Log Entries to the console (stderr) in either a synchronous or asynchronous fashion.

    See more

    Declaration

    Swift

    public class LXConsoleEndpoint: LXEndpoint
  • Instances of LXDateFormatter create string representations of NSDate objects. There are several built-in formats available, or a custom format can be specified in the same format as in NSDateFormatter objects.

    See more

    Declaration

    Swift

    public class LXDateFormatter
  • Instances of LXEntryFormatter create string representations of LXLogEntry objects. There are several built-in formats available, or a custom format can be specified as a closure of the type (LXLogEntry) -> String.

    See more

    Declaration

    Swift

    public class LXEntryFormatter
  • An Endpoint that uploads Log Entries to an HTTP service in plaintext format.

    Upload and retry management are handled automatically by this Endpoint. It attempts to upload Log Entries in order, but makes no guarantees.

    See more

    Declaration

    Swift

    public class LXHTTPEndpoint: LXEndpoint
  • An Endpoint that uploads Log Entries to an HTTP service in JSON format.

    Upload and retry management are handled automatically by this Endpoint. It attempts to upload Log Entries in order, but makes no guarantees.

    See more

    Declaration

    Swift

    public class LXHTTPJSONEndpoint: LXHTTPEndpoint
  • The main logging API for application code. An instance of this class distributes Log Entries to Endpoints for writing.

    See more

    Declaration

    Swift

    public final class LXLogger