Protocol
PCLoggerProtocol
public protocol PCLoggerProtocol
The logger protocol
Requirements
debug(_:category:)
func debug(_ message: String, category: PCLoggingCategory)
Common messages
Parameters
Name | Type | Description |
---|---|---|
message | String |
The message |
category | PCLoggingCategory |
The category |
error(_:category:)
func error(_ message: String, category: PCLoggingCategory)
Errors
Parameters
Name | Type | Description |
---|---|---|
message | String |
The message |
category | PCLoggingCategory |
The category |
sensitive(_:category:)
func sensitive(_ message: String, category: PCLoggingCategory)
Sensitive information. E.g. keys, requests with user's personal info.
Parameters
Name | Type | Description |
---|---|---|
message | String |
The message |
category | PCLoggingCategory |
The category |