Skip to content

Commit

Permalink
Allow includeStacktraces to be used. (#28)
Browse files Browse the repository at this point in the history
vdauchy authored Aug 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c96ddba commit 1ce52a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Formatter/ColoredLineFormatter.php
Original file line number Diff line number Diff line change
@@ -23,8 +23,9 @@ class ColoredLineFormatter extends \Monolog\Formatter\LineFormatter
* @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format
* @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries
* @param bool $ignoreEmptyContextAndExtra
* @param bool $includeStacktraces
*/
public function __construct(?ColorSchemeInterface $colorScheme = null, $format = null, $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false)
public function __construct(?ColorSchemeInterface $colorScheme = null, $format = null, $dateFormat = null, bool $allowInlineLineBreaks = false, bool $ignoreEmptyContextAndExtra = false, bool $includeStacktraces = false)
{
// Store the Color Scheme
if (! $colorScheme) {
@@ -34,7 +35,7 @@ public function __construct(?ColorSchemeInterface $colorScheme = null, $format =
}

// Call Parent Constructor
parent::__construct($format, $dateFormat, $allowInlineLineBreaks, $ignoreEmptyContextAndExtra);
parent::__construct($format, $dateFormat, $allowInlineLineBreaks, $ignoreEmptyContextAndExtra, $includeStacktraces);
}

/**

0 comments on commit 1ce52a1

Please sign in to comment.