15use Aws\DynamoDb\DynamoDbClient;
47 if (!defined(
'Aws\Common\Aws::VERSION') || version_compare(
'3.0', Aws::VERSION,
'<=')) {
48 throw new \RuntimeException(
'The DynamoDbHandler is only known to work with the AWS SDK 2.x releases');
60 protected function write(array $record)
63 $formatted = $this->client->formatAttributes($filtered);
65 $this->client->putItem(array(
66 'TableName' => $this->table,
77 return array_filter($record,
function ($value) {
78 return !empty($value) ||
false === $value || 0 === $value;
Base Handler class providing the Handler structure.
Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/)
getDefaultFormatter()
{Gets the default formatter.FormatterInterface}
__construct(DynamoDbClient $client, $table, $level=Logger::DEBUG, $bubble=true)
filterEmptyFields(array $record)
write(array $record)
{Writes the record down to the log of the implementing handler.void}
const DEBUG
Detailed debug information.