Sends a message to the logging system, optionally specifying a custom log object, log level, and any message format arguments.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
- Xcode 8.0+
A constant string or format string that produces a human-readable log message.
A custom log object. If unspecified, the shared default log is used.
The log level. If unspecified, the default log level is used.
messageis a constant string, do not specify arguments.
messageis a format string, pass the expected number of arguments in the order that they appear in the string.
Call this function to capture information about things that might result a failure. Default-level messages sent by this function are initially stored in memory. Without a configuration change, they are moved to the data store as memory buffers fill. They remain there until the storage quota is exceeded, at which point, the oldest messages are purged.For more information about format strings, see Formatting Log Messages.