Connection Logging

The connection logging feature allows logs to be delivered to a Cloud Files account every hour. For HTTP-based protocol traffic, these are Apache-style access logs. For all other traffic, this is connection and transfer logging.

Setup

In order to interact with this feature you must first retrieve a particular load balancer, like so:

$loadBalancer = $service->loadBalancer('{id}');

Check Configuration

// TRUE if enabled, FALSE if not
$connectionLogging = $loadBalancer->hasConnectionLogging();

Enable Connection Logging

$loadBalancer->enableConnectionLogging(true);

Disable Connection Logging

$loadBalancer->enableConnectionLogging(false);