Newer Version Available

This content describes an older version of this product. View Latest

Logger

The Logger class provides a standardized way to log error, warning, or info messages. Trace the code execution and identify error or debug.
Use this signature to define the Logger class.
1public class Logger

Log an Informational Message

Use the message parameter to log an informational message by using this resource and signature.

info

1public static func info(_ message: String)

Log a Debug Message

Use the message parameter to log a debug message by using this resource and signature.

debug(_:)

1public static func debug(_ message: String)

Log an Error Message

Use the message parameter to log an error message by using this resource and signature.

error(_:)

1public static func error(_ message: String)

Log a Faulty Message

Use the message parameter to log a faulty message by using this resource and signature.

fault(_:)

1public static func fault(_ message: String)