None Adapter

This adapter can be used to disable logging without making any changes to your code. Simply change the adapter.

1
2
3
4
5
6
<?php
use Vespula\Log\Log;
use Vespula\Log\Adapter\None NoLogger;

$log_adapter = new NoLogger();
$log = new Log($log_adapter);