PHP Trait Bramus\Monolog\Formatter\ColorSchemes\ColorSchemeTrait

Afficher le fichier Open project: bramus/monolog-colored-line-formatter

Protected Properties

Свойство Type Description
$ansi Bramus\Ansi\Ansi ANSI Wrapper which provides colors
$colorScheme array The Color Scheme Array

Méthodes publiques

Méthode 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 méthode

* Constructor
public __construct ( )

getColorizeArray() public méthode

Get the Color Scheme Array
public getColorizeArray ( ) : array
Résultat array The Color Scheme Array

getColorizeString() public méthode

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

getResetString() public méthode

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

setColorizeArray() public méthode

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

Property Details

$ansi protected_oe property

ANSI Wrapper which provides colors
protected Ansi,Bramus\Ansi $ansi
Résultat Bramus\Ansi\Ansi

$colorScheme protected_oe property

The Color Scheme Array
protected array $colorScheme
Résultat array