Bramus\Monolog\Formatter\ColoredLineFormatter::__construct PHP Method

__construct() public method

public __construct ( $colorScheme = null, string $format = null, string $dateFormat = null, boolean $allowInlineLineBreaks = false, boolean $ignoreEmptyContextAndExtra = false )
$format string The format of the message
$dateFormat string The format of the timestamp: one supported by DateTime::format
$allowInlineLineBreaks boolean Whether to allow inline line breaks in log entries
$ignoreEmptyContextAndExtra boolean
    public function __construct($colorScheme = null, $format = null, $dateFormat = null, $allowInlineLineBreaks = false, $ignoreEmptyContextAndExtra = false)
    {
        // Store the Color Scheme
        if ($colorScheme instanceof ColorSchemeInterface) {
            $this->setColorScheme($colorScheme);
        }
        // Call Parent Constructor
        parent::__construct($format, $dateFormat, $allowInlineLineBreaks, $ignoreEmptyContextAndExtra);
    }