. /** * @package moodlecore * @subpackage backup-logger * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Logger implementation that sends messages to error_log() * * TODO: Finish phpdocs */ class error_log_logger extends base_logger { // Protected API starts here protected function action($message, $level, $options = null) { if (PHPUNIT_TEST) { // no logging from PHPUnit, it is admins fault if it does not work!!! return true; } return error_log($message); } }