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 moreDeclaration
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
orDEBUG
Swift flag, then it’s aTKConsoleLogger
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)
-
Undocumented
Declaration
Swift
public typealias ServerResult = Result<(URLResponse, Data?), Error>
-
The URL request along with a UUID to identify each request sent
See moreDeclaration
Swift
public struct ServerRequest : Hashable
-
A response to a
See moreServerRequest
Declaration
Swift
public struct ServerResponse : Hashable
-
Undocumented
Declaration
Swift
public class func formatForVCCode(request: TKLog.ServerRequest) -> String
-
Undocumented
Declaration
Swift
public class func format(response: URLResponse, data: Data?, for request: TKLog.ServerRequest, detailed: Bool) -> String