Property | Type | Description | |
---|---|---|---|
$logContext | |||
$logExtra | |||
$numberOfWords |
Method | Description | |
---|---|---|
__construct ( string $format = null, boolean $logContext = true, boolean $logExtra = true, integer $numberOfWords = 2 ) | ||
format ( array $record ) | ||
formatBatch ( array $records ) | ||
getFirstWords ( string $message ) : string | This function converts a long message into a string with the first N-words. |
public __construct ( string $format = null, boolean $logContext = true, boolean $logExtra = true, integer $numberOfWords = 2 ) | ||
$format | string | The format of the message |
$logContext | boolean | If true add multiple rows containing Context information |
$logExtra | boolean | If true add multiple rows containing Extra information |
$numberOfWords | integer | The number of words to show. |
public getFirstWords ( string $message ) : string | ||
$message | string | The message to shortify. |
return | string |