Logger

public struct Logger

By default, the logger logs all requests and their responses to the command line. However, logging is only enabled in debug mode - in release compiles, the code for logging is not even included in the binary. It is also possible to prevent any log statements in debug mode by using the silence method.

  • Globally enables or disables logging for the Squid library. Has no effect in release compiles.

    Declaration

    Swift

    public static func silence(_ doSilence: Bool)

    Parameters

    doSilence

    Whether to disable (true) or enable (false) logging.