If the Log object is no longer needed, set the variable containing it to
NULL to destroy it. This will automatically call the
shutdown() instance method of each attached Writer before
the Log object is destroyed:
$logger = null;
Explicitly destroying the log in this way is optional and is performed automatically at PHP shutdown.