class Logger implements LoggerInterface (View source)

A lightweight query logger.

Methods

__construct(LoggerInterface $logger = null, $prefix = 'MongoDB query: ')

No description

setBatchInsertThreshold($batchInsertThreshold)

No description

logQuery(array $query)

No description

Details

__construct(LoggerInterface $logger = null, $prefix = 'MongoDB query: ')

Parameters

LoggerInterface $logger
$prefix

setBatchInsertThreshold($batchInsertThreshold)

Parameters

$batchInsertThreshold

logQuery(array $query)

Parameters

array $query