mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
@@ -39,7 +39,7 @@ class JsonFormatter implements FormatterInterface
|
||||
* The batch mode option configures the formatting style for
|
||||
* multiple records. By default, multiple records will be
|
||||
* formatted as a JSON-encoded array. However, for
|
||||
* compatibility with some API endpoints, alternive styles
|
||||
* compatibility with some API endpoints, alternative styles
|
||||
* are available.
|
||||
*
|
||||
* @return int
|
||||
|
@@ -26,7 +26,7 @@ class BrowserConsoleHandler extends AbstractProcessingHandler
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* Formatted output may contain some formatting markers to be transfered to `console.log` using the %c format.
|
||||
* Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format.
|
||||
*
|
||||
* Example of formatted string:
|
||||
*
|
||||
|
@@ -234,19 +234,19 @@ class HipChatHandler extends SocketHandler
|
||||
}
|
||||
|
||||
$messages[] = $record['message'];
|
||||
$messgeStr = implode(PHP_EOL, $messages);
|
||||
$messageStr = implode(PHP_EOL, $messages);
|
||||
$formattedMessages[] = $this->getFormatter()->format($record);
|
||||
$formattedMessageStr = implode('', $formattedMessages);
|
||||
|
||||
$batchRecord = array(
|
||||
'message' => $messgeStr,
|
||||
'message' => $messageStr,
|
||||
'formatted' => $formattedMessageStr,
|
||||
'context' => array(),
|
||||
'extra' => array(),
|
||||
);
|
||||
|
||||
if (!$this->validateStringLength($batchRecord['formatted'], static::MAXIMUM_MESSAGE_LENGTH)) {
|
||||
// Pop the last message and implode the remainging messages
|
||||
// Pop the last message and implode the remaining messages
|
||||
$lastMessage = array_pop($messages);
|
||||
$lastFormattedMessage = array_pop($formattedMessages);
|
||||
$batchRecord['message'] = implode(PHP_EOL, $messages);
|
||||
|
@@ -29,7 +29,7 @@ class LogEntriesHandler extends SocketHandler
|
||||
* @param int $level The minimum logging level to trigger this handler
|
||||
* @param boolean $bubble Whether or not messages that are handled should bubble up the stack.
|
||||
*
|
||||
* @throws MissingExtensionExcpetion If SSL encryption is set to true and OpenSSL is missing
|
||||
* @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing
|
||||
*/
|
||||
public function __construct($token, $useSSL = true, $level = Logger::DEBUG, $bubble = true)
|
||||
{
|
||||
|
@@ -101,7 +101,7 @@ class NativeMailerHandler extends MailHandler
|
||||
/**
|
||||
* Add parameters to the message
|
||||
*
|
||||
* @param string|array $arguments Custom added parameters
|
||||
* @param string|array $parameters Custom added parameters
|
||||
* @return self
|
||||
*/
|
||||
public function addParameter($parameters)
|
||||
|
@@ -260,7 +260,7 @@ class SlackHandler extends SocketHandler
|
||||
}
|
||||
|
||||
/**
|
||||
* Stringifys an array of key/value pairs to be used in attachment fields
|
||||
* Stringifies an array of key/value pairs to be used in attachment fields
|
||||
*
|
||||
* @param array $fields
|
||||
* @access protected
|
||||
|
@@ -136,7 +136,7 @@ class NewRelicHandlerTest extends TestCase
|
||||
$this->assertEquals(null, self::$transactionName);
|
||||
}
|
||||
|
||||
public function testTheTransactionNameCanBeInjectedFromtheConstructor()
|
||||
public function testTheTransactionNameCanBeInjectedFromTheConstructor()
|
||||
{
|
||||
$handler = new StubNewRelicHandler(Logger::DEBUG, false, null, false, 'myTransaction');
|
||||
$handler->handle($this->getRecord(Logger::ERROR, 'log message'));
|
||||
|
Reference in New Issue
Block a user