Instance Method


Returns a Boolean value indicating whether a specific type of logging, such as default, info, debug, error, or fault, is enabled for a specified log object.


func isEnabled(type: OSLogType) -> Bool



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, indicating the level of logging to check.

Return Value

true if logging at the specified level is enabled, otherwise false.

See Also

Getting the Log Configuration

var signpostsEnabled: Bool

A Boolean value that indicates whether a log has signpost logging enabled.