isEnabled(type:)
Returns a Boolean value that indicates whether the log can write messages with the specified log type.
Declaration
func isEnabled(type: OSLogType) -> BoolParameters
- type:
A log type constant, such as Os_log_type_default, Os_log_type_info, Os_log_type_debug, Os_log_type_error, or Os_log_type_fault, that specifies the level of logging to check.
Return Value
true if logging at the specified level is in an enabled state; otherwise, false.