docs/Protocols/SocketLogger.html
public protocol SocketLogger : AnyObject
Represents a class will log client events.
Properties
`
log
`
Whether to log or not
Swift
var log: Bool { get set }
Methods
`
log(_:type:)
` Default implementation
Normal log messages
Default implementation.
Swift
func log(_ message: @autoclosure () -> String, type: String)
| message |
The message being logged. Can include %@ that will be replaced with args
|
| type |
The type of entity that called for logging.
|
| args |
Any args that should be inserted into the message. May be left out.
|
`
error(_:type:)
` Default implementation
Error Messages
Default implementation.
Swift
func error(_ message: @autoclosure () -> String, type: String)
| message |
The message being logged. Can include %@ that will be replaced with args
|
| type |
The type of entity that called for logging.
|
| args |
Any args that should be inserted into the message. May be left out.
|