CoreLog
in package
$this->core->logs, $this->core->errors Class to manage Logs & Errors https://cloud.google.com/logging/docs/setup/php $logger->info('This will show up as log level INFO'); $logger->warning('This will show up as log level WARNING'); $logger->error('This will show up as log level ERROR');
Table of Contents
Properties
- $active_lines : mixed
- $data : mixed
- $is_terminal : mixed
- $lines : mixed
- $logger : Logger|PsrLogger
- $syslog_type : mixed
Methods
- __construct() : mixed
- add() : mixed
- Add an entry in the log.. if syslog_title is passed, also insert a LOG_DEBUG
- get() : array<string|int, mixed>
- return the current data stored in the log
- reset() : mixed
- Reset the log
- sendToSysLog() : mixed
- store all the data inside a syslog
- set() : mixed
- Reset the log and add an entry in the log.. if syslog_title is passed, also insert a LOG_DEBUG
Properties
$active_lines
public
mixed
$active_lines
= \true
$data
public
mixed
$data
= []
$is_terminal
public
mixed
$is_terminal
$lines
public
mixed
$lines
= 0
$logger
public
Logger|PsrLogger
$logger
= \null
$syslog_type
public
mixed
$syslog_type
= 'info'
Methods
__construct()
public
__construct([mixed $is_terminal = false ]) : mixed
Parameters
- $is_terminal : mixed = false
add()
Add an entry in the log.. if syslog_title is passed, also insert a LOG_DEBUG
public
add( $data[, string $syslog_title = null ][, $syslog_type = null ]) : mixed
Parameters
get()
return the current data stored in the log
public
get() : array<string|int, mixed>
Return values
array<string|int, mixed>reset()
Reset the log
public
reset() : mixed
sendToSysLog()
store all the data inside a syslog
public
sendToSysLog( $data[, $syslog_type = null ]) : mixed
Parameters
set()
Reset the log and add an entry in the log.. if syslog_title is passed, also insert a LOG_DEBUG
public
set( $data[, string $syslog_title = null ][, mixed $syslog_type = null ]) : mixed