webCOMAND

log::remove_logger()

Remove a logger previously added to this log with add_logger().

Prototype

void remove_logger(logger $logger)

Parameters

  • logger - The logger to remove from this log instance.

Example

$logger = new \io_comand_log\logger\file('simple', '/var/log/comand.log');
$log->add_logger($logger);
$log->log_notice('This is a notice event.');
$log->remove_logger($logger);

Related

add_logger()