- ⌂ log
- Methods
log::add_relay_log()
Adds a "relay log" to this log. When this log records an event, all of its relay logs are notified. The relay log will then log the same event, if it isn't filtered out by it's event log level or other rules.
Prototype
void add_relay_log(log $relay_log)
Parameters
- relay_log - The log to notify when new events are logged.
Example
$relay_log = new \io_comand_log\log();
$log->add_relay_log($relay_log);
$log->log_notice('This will be logged to log and relay_log.');
$log->remove_relay_log($relay_log);
$log->log_notice('This will only be logged to log.');
webCOMAND Docs