Contents

log(level:_:)

Writes a message to the log using the specified log type.

Declaration

func log(level: OSLogType, _ message: OSLogMessage)

Parameters

  • level:

    The message’s log level, which determines the severity of the message and whether the system persists it to disk. For possible values, see Oslogtype.

  • 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

See Also

Logging a Message