Contents

warning(_:)

Writes information about a warning to the log.

Declaration

func warning(_ 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

This method is functionally equivalent to the error(_:) method.

See Also

Logging a Scoped Message