Contents

error(_:)

Writes information about an error to the log.

Declaration

func error(_ message: OSLogMessage)

Parameters

  • message:

    The interpolated string that the logger writes to the log. Each of the message’s interpolations can specify individual formatting and privacy options. For more information, see Message Argument Formatters.

Discussion

Use this method to write messages with the error log level to both the in-memory and on-disk log stores.

See Also

Logging a Scoped Message