PHP Trait Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeTrait

Show file Open project: bramus/monolog-colored-line-formatter

Protected Properties

Property Type Description
$ansi Bramus\Ansi\Ansi ANSI Wrapper which provides colors
$colorScheme array The Color Scheme Array

Public Methods

Method Description
__construct ( ) * Constructor
getColorizeArray ( ) : array Get the Color Scheme Array
getColorizeString ( integer $level ) : string Get the Color Scheme String for the given Level
getResetString ( ) : string Get the string identifier that closes/finishes the styling
setColorizeArray ( array $colorScheme ) Set the Color Scheme Array

Method Details

__construct() public method

* Constructor
public __construct ( )

getColorizeArray() public method

Get the Color Scheme Array
public getColorizeArray ( ) : array
return array The Color Scheme Array

getColorizeString() public method

Get the Color Scheme String for the given Level
public getColorizeString ( integer $level ) : string
$level integer The Logger Level
return string The Color Scheme String

getResetString() public method

Get the string identifier that closes/finishes the styling
public getResetString ( ) : string
return string The reset string

setColorizeArray() public method

Set the Color Scheme Array
public setColorizeArray ( array $colorScheme )
$colorScheme array The Color Scheme Array

Property Details

$ansi protected property

ANSI Wrapper which provides colors
protected Ansi,Bramus\Ansi $ansi
return Bramus\Ansi\Ansi

$colorScheme protected property

The Color Scheme Array
protected array $colorScheme
return array