PHP Class Bramus\Monolog\Formatter\ColoredLineFormatter

Inheritance: extends Monolog\Formatter\LineFormatter
Show file Open project: bramus/monolog-colored-line-formatter

Public Methods

Method Description
__construct ( $colorScheme = null, string $format = null, string $dateFormat = null, boolean $allowInlineLineBreaks = false, boolean $ignoreEmptyContextAndExtra = false )
format ( array $record )
getColorScheme ( ) : Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface Gets The Color Scheme
setColorScheme ( Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface $colorScheme ) Sets The Color Scheme

Method Details

__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

format() public method

public format ( array $record )
$record array

getColorScheme() public method

Gets The Color Scheme
public getColorScheme ( ) : Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface
return Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface

setColorScheme() public method

Sets The Color Scheme
public setColorScheme ( Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface $colorScheme )
$colorScheme Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeInterface