Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
/**
4
 * Slim Framework (https://slimframework.com)
5
 *
6
 * @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License)
7
 */
8
 
9
declare(strict_types=1);
10
 
11
namespace Slim;
12
 
13
use Psr\Log\AbstractLogger;
14
use Psr\Log\InvalidArgumentException;
15
use Stringable;
16
 
17
use function error_log;
18
 
19
class Logger extends AbstractLogger
20
{
21
    /**
22
     * @param mixed             $level
23
     * @param string|Stringable $message
24
     * @param array<mixed>      $context
25
     *
26
     * @throws InvalidArgumentException
27
     */
28
    public function log($level, $message, array $context = []): void
29
    {
30
        error_log((string) $message);
31
    }
32
}