SocketLogger

public protocol SocketLogger : class

Represents a class will log client events.

  • log

    Whether to log or not

    Declaration

    Swift

    var log: Bool
  • log(_:type:args:) Default implementation

    Normal log messages

    Default Implementation

    Default implementation.

    Declaration

    Swift

    func log(_ message: String, type: String, args: Any...)

    Parameters

    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:args:) Default implementation

    Error Messages

    Default Implementation

    Default implementation.

    Declaration

    Swift

    func error(_ message: String, type: String, args: Any...)

    Parameters

    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.