1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 17:46:09 +02:00

Update readme, fix cs

This commit is contained in:
Jordi Boggiano
2013-11-20 13:30:00 +01:00
parent aff8d92e29
commit 89ba162dca
6 changed files with 16 additions and 12 deletions

View File

@@ -39,9 +39,9 @@ class DynamoDbHandler extends AbstractProcessingHandler
/**
* @param DynamoDbClient $client
* @param string $table
* @param integer $level
* @param boolean $bubble
* @param string $table
* @param integer $level
* @param boolean $bubble
*/
public function __construct(DynamoDbClient $client, $table, $level = Logger::DEBUG, $bubble = true)
{
@@ -70,7 +70,7 @@ class DynamoDbHandler extends AbstractProcessingHandler
}
/**
* @param array $record
* @param array $record
* @return array
*/
protected function filterEmptyFields(array $record)

View File

@@ -46,10 +46,10 @@ class ElasticSearchHandler extends AbstractProcessingHandler
protected $options = array();
/**
* @param Client $client Elastica Client object
* @param array $options Handler configuration
* @param integer $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
* @param Client $client Elastica Client object
* @param array $options Handler configuration
* @param integer $level The minimum logging level at which this handler will be triggered
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
*/
public function __construct(Client $client, array $options = array(), $level = Logger::DEBUG, $bubble = true)
{
@@ -112,7 +112,7 @@ class ElasticSearchHandler extends AbstractProcessingHandler
/**
* Use Elasticsearch bulk API to send list of documents
* @param array $documents
* @param array $documents
* @throws \RuntimeException
*/
protected function bulkSend(array $documents)

View File

@@ -73,7 +73,8 @@ class StreamHandler extends AbstractProcessingHandler
fwrite($this->stream, (string) $record['formatted']);
}
private function customErrorHandler($code, $msg) {
private function customErrorHandler($code, $msg)
{
$this->errorMessage = preg_replace('{^fopen\(.*?\): }', '', $msg);
}
}