Static logger.
Public Static Properties | |
| static | $verbose = false |
Protected Static Properties | |
| static array | $colors |
| ANSI escape colors. More... | |
Public Static Methods | |
| static void | debug (string $text) |
Outputs a debug line to STDERR More... | |
| static void | disableColors () |
| static void | entity (string $entity) |
Outputs an entity name to STDERR More... | |
| static void | error (string $error) |
Outputs an error to STDERR More... | |
| static void | line (string $text='') |
Outputs a raw line to STDERR without decoration. More... | |
| static void | member (string $code, $member, int $level=LOG_INFO) |
Outputs a line about entity member/s to STDERR More... | |
| static mixed | var ($mixed) |
Exports a variable to STDERR and returns it back for fluency. More... | |
| static mixed | verbose ($text='', int $level=-1) |
Outputs an indented verbose line to STDERR More... | |
| static void | verboseMember (string $code, $member, int $level=-1) |
| { More... | |
|
staticprotected |
ANSI escape colors.
|
static |
Outputs a debug line to STDERR
| string | $text |
|
static |
Outputs an entity name to STDERR
| string | $entity |
|
static |
Outputs an error to STDERR
| string | $error |
|
static |
Outputs a raw line to STDERR without decoration.
| string | $text |
|
static |
Outputs a line about entity member/s to STDERR
Color will apply to the whole line if $level is negative / more severe than LOG_INFO.
| string | $code | |
| string | string[] | $member | |
| int | $level |
|
static |
Exports a variable to STDERR and returns it back for fluency.
| mixed | $mixed |
|
static |
Outputs an indented verbose line to STDERR
Always ensure XMLWriterInterface::write() only has one possible trailing line when applicable.
| string | string[] | $text | Line/s |
| int | $level |
|
static |
{
| string | $code | |
| string | string[] | $member | |
| int | $level |