CLASS
DefaultLoggingMessageWriter
public class DefaultLoggingMessageWriter: LoggingMessageWriter
Default implementation of LoggingMessageWriter , that uses os_log
.
Properties
level
public var level: LoggerLevel = .off
Allowed level of logging.
Methods
info(message:category:)
public func info(message: String, category: LogCategory)
Logs message with info
level.
- Parameters:
- message: message that needs to be logged.
- category: which category of the SDK is logged message.
Parameters
Name | Description |
---|---|
message | message that needs to be logged. |
category | which category of the SDK is logged message. |
debug(message:category:)
public func debug(message: String, category: LogCategory)
Logs message with debug
level.
- Parameters:
- message: message that needs to be logged.
- category: which category of the SDK is logged message.
Parameters
Name | Description |
---|---|
message | message that needs to be logged. |
category | which category of the SDK is logged message. |
error(message:category:)
public func error(message: String, category: LogCategory)
Logs message with error
level.
- Parameters:
- message: message that needs to be logged.
- category: which category of the SDK is logged message.
Parameters
Name | Description |
---|---|
message | message that needs to be logged. |
category | which category of the SDK is logged message. |