isEnabled(type:)
Checks if the Logger can emit log messages for a given log type. This allows for more granular control over logging based on the log level.
Declaration
func isEnabled(type: OSLogType) -> BoolParameters
- type:
The log type to check (e.g., .default, .info, .debug, .error, .fault)
Return Value
True if logging is enabled for the specified log type, false otherwise