Contents

info(_:)

Writes an informative message to the log.

Declaration

func info(_ 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 info log level to the in-memory log store only. If you use the log command line tool to collect your logs, the method also writes messages to the on-disk log store.

See Also

Logging a Scoped Message