for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* Saito - The Threaded Web Forum
*
* @copyright Copyright (c) the Saito Project Developers
* @link https://github.com/Schlaefer/Saito
* @license http://opensource.org/licenses/MIT
*/
namespace Saito\Exception\Logger;
use Cake\Log\Log;
class ForbiddenLogger extends ExceptionLogger
{
* {@inheritDoc}
public function write($message = null, $data = null)
if (empty($message)) {
$message = 'Forbidden';
}
parent::write($message, $data);
protected function _write()
Log::write(
'error',
$this->_message(),
['scope' => ['saito.forbidden']]
);