SocketLogger
public protocol SocketLogger : AnyObject
Represents a class will log client events.
-
Whether to log or not
Declaration
Swift
var log: Bool { get set }
-
log(_:Default implementationtype: ) Normal log messages
Default Implementation
Default implementation.
Declaration
Swift
func log(_ message: @autoclosure () -> String, type: String)Parameters
messageThe message being logged. Can include
%@that will be replaced withargstypeThe type of entity that called for logging.
argsAny args that should be inserted into the message. May be left out.
-
error(_:Default implementationtype: ) Error Messages
Default Implementation
Default implementation.
Declaration
Swift
func error(_ message: @autoclosure () -> String, type: String)Parameters
messageThe message being logged. Can include
%@that will be replaced withargstypeThe type of entity that called for logging.
argsAny args that should be inserted into the message. May be left out.
SocketLogger Protocol Reference