StderrLogger
PSR-3 Logger that sends to STDERR
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct()Create a new Logger |
Instance Methods
| Returns | Signature and Description |
|---|---|
void | log(, , )Logs with an arbitrary level. |
Method Details
__construct
public function
__construct(mixed $level)Create a new Logger
| Name | Type | Description |
|---|---|---|
$level | mixed | The log level to display |
log
public function
log(mixed $level, mixed $message, array<string,mixed> $context = [])Logs with an arbitrary level.
| Name | Type | Description |
|---|---|---|
$level | mixed | Log level |
$message | String message | |
$context | array<string,mixed> | Optional context |