MydbLogger
in package
implements
LoggerInterface
Implementation of PSR-3 Logger that will output to STDERR & STDOUT
Tags
Table of Contents
Interfaces
- LoggerInterface
Constants
Properties
- $stdeol : string
- End of line delimiter
- $stderr : resource
- Opened resource, STDERR
- $stdout : resource
- Opened resource, STDOUT
Methods
- __construct() : mixed
- __destruct() : mixed
- alert() : void
- critical() : void
- debug() : void
- emergency() : void
- error() : void
- info() : void
- log() : void
- notice() : void
- warning() : void
- checkStreamResource() : void
- formatter() : string
- fwrite() : int|null
- writeOutput() : void
Constants
IO_WRITE_ATTEMPTS
protected
mixed
IO_WRITE_ATTEMPTS
= 3
Properties
$stdeol
End of line delimiter
protected
string
$stdeol
= \PHP_EOL
$stderr
Opened resource, STDERR
protected
resource
$stderr
Tags
$stdout
Opened resource, STDOUT
protected
resource
$stdout
Tags
Methods
__construct()
public
__construct([resource $stdout = STDOUT ][, resource $stderr = STDERR ][, string $stdeol = PHP_EOL ]) : mixed
Parameters
- $stdout : resource = STDOUT
- $stderr : resource = STDERR
- $stdeol : string = PHP_EOL
Tags
__destruct()
public
__destruct() : mixed
alert()
public
alert(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
critical()
public
critical(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
debug()
public
debug(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
emergency()
public
emergency(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
error()
public
error(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
info()
public
info(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
log()
public
log(mixed $level, array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $level : mixed
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
notice()
public
notice(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
warning()
public
warning(array<string|int, mixed>|string $message[, array<string|int, mixed> $context = [] ]) : void
Parameters
- $message : array<string|int, mixed>|string
- $context : array<string|int, mixed> = []
Tags
checkStreamResource()
protected
checkStreamResource(resource $stream) : void
Parameters
- $stream : resource
-
&fs.file.pointer;
Tags
formatter()
protected
static formatter(string|array<string|int, mixed> $var) : string
Parameters
- $var : string|array<string|int, mixed>
Return values
stringfwrite()
protected
fwrite(resource $stream, string $data) : int|null
Parameters
- $stream : resource
- $data : string
Return values
int|nullwriteOutput()
protected
writeOutput(resource $stream[, string $data = '' ]) : void
Parameters
- $stream : resource
-
&fs.file.pointer;
- $data : string = ''