PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Adding User-defined Priorities

User-defined priorities can be added at runtime using the Log's addPriority() method:

<?php
$logger
->addPriority('FOO'8);

The snippet above creates a new priority, FOO, whose value is '8'. The new priority is then available for logging:

<?php
$logger
->log('Foo message'8);
$logger->foo('Foo Message');

New priorities cannot overwrite existing ones.

Zend Framework