WebcomLog
public struct WebcomLog : CustomStringConvertible, CustomDebugStringConvertible
A value that contains a log.
Logs produced by the SDK use this type.
-
A value representing a log level.
See moreDeclaration
Swift
@frozen public enum Level : Int, CaseIterable, Hashable, SelfIdentifiable
-
A value representing a log category.
Categories are used to group logs related to the same subject.
See moreDeclaration
Swift
public struct Category : Hashable
-
A log with empty content.
Declaration
Swift
public static let empty: WebcomLog
-
The date when the log was produced.
Declaration
Swift
public let date: Date
-
The level of the log.
Declaration
Swift
public let level: Level
-
The category of the log.
Declaration
Swift
public let category: Category
-
The message of the log.
Declaration
Swift
public let message: String
-
The location in source code where the log was produced.
Declaration
Swift
public let location: WebcomLocation
-
Sends the log to the
os.log
logging system.This method is designed to be used by applications when they set the
Webcom.log
closure.With iOS 9, this method uses
NSLog
instead ofos_log
.Declaration
Swift
public func systemLog()
-
Prints the log to the standard output.
This method is designed to be used by applications when they set the
Webcom.log
closure.Declaration
Swift
public func print()
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var debugDescription: String { get }