webCOMAND

log::remove_relay_log()

Removes a "relay log" from this log. When this log records an event, the removed relay log will no longer be notified.

Prototype

void remove_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.');

Related

add_relay_log()