MDL-61954 gradeimport_direct: Implement privacy API
[moodle.git] / backup / util / loggers / error_log_logger.class.php
blob899e9513ad12e22e17c48b255c0e48c058382722
1 <?php
3 // This file is part of Moodle - http://moodle.org/
4 //
5 // Moodle is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // Moodle is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 /**
19 * @package moodlecore
20 * @subpackage backup-logger
21 * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25 /**
26 * Logger implementation that sends messages to error_log()
28 * TODO: Finish phpdocs
30 class error_log_logger extends base_logger {
32 // Protected API starts here
34 protected function action($message, $level, $options = null) {
35 if (PHPUNIT_TEST) {
36 // no logging from PHPUnit, it is admins fault if it does not work!!!
37 return true;
39 return error_log($message);