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.

Log an Informational Message

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

info

Log a Debug Message

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

debug(_:)

Log an Error Message

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

error(_:)

Log a Faulty Message

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

fault(_:)