TKLog

@objc
public class TKLog : NSObject

The main class to log something from TripKit. The actual logging is done by the TKLogger instances set on the .logger property.

  • Undocumented

    See more

    Declaration

    Swift

    public enum LogLevel : Int
  • The loggers which do the actual logging work. By default this is empty, unless TripKit is compiled with a BETA or DEBUG Swift flag, then it’s a TKConsoleLogger with a log level of “warning”.

    Declaration

    Swift

    public static var loggers: [TKLogger]
  • Undocumented

    Declaration

    Swift

    @objc(info:block:)
    public class func info(_ identifier: String, text: @autoclosure () -> String)
  • Undocumented

    Declaration

    Swift

    public class func info(identifier: String? = nil, _ message: @autoclosure () -> String, file: StaticString = #filePath)
  • Undocumented

    Declaration

    Swift

    @objc(debug:block:)
    public class func debug(_ identifier: String, text: @autoclosure () -> String)
  • Undocumented

    Declaration

    Swift

    public class func debug(identifier: String? = nil, _ message: @autoclosure () -> String, file: StaticString = #filePath)
  • Undocumented

    Declaration

    Swift

    @objc(verbose:block:)
    public class func verbose(_ identifier: String, text: @autoclosure () -> String)
  • Undocumented

    Declaration

    Swift

    public class func verbose(identifier: String? = nil, _ message: @autoclosure () -> String, file: StaticString = #filePath)
  • Undocumented

    Declaration

    Swift

    @objc
    public class func error(_ identifier: String, text message: String)
  • Undocumented

    Declaration

    Swift

    public class func error(identifier: String? = nil, _ message: @autoclosure () -> String, file: StaticString = #filePath)
  • Undocumented

    Declaration

    Swift

    @objc(warn:text:)
    public class func warn(_ identifier: String, text message: String)
  • Undocumented

    Declaration

    Swift

    public class func warn(identifier: String? = nil, _ message: @autoclosure () -> String, file: StaticString = #filePath)
  • Undocumented

    Declaration

    Swift

    @objc(info:text:)
    public class func _info(_ identifier: String, text message: String)
  • Undocumented

    Declaration

    Swift

    @objc(debug:text:)
    public class func _debug(_ identifier: String, text message: String)
  • Undocumented

    Declaration

    Swift

    @objc(verbose:text:)
    public class func _verbose(_ identifier: String, text message: String)

Server requests

  • Undocumented

    Declaration

    Swift

    public typealias ServerResult = Result<(URLResponse, Data?), Error>
  • The URL request along with a UUID to identify each request sent

    See more

    Declaration

    Swift

    public struct ServerRequest : Hashable
  • A response to a ServerRequest

    See more

    Declaration

    Swift

    public struct ServerResponse : Hashable

Formatting helpers