Вход Регистрация
Файл: onlinepoisk.wm-scripts.ru/vendor/silex/silex/silex/src/Silex/Application/MonologTrait.php
Строк: 32
<?php

/*
 * This file is part of the Silex framework.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace SilexApplication;

use 
MonologLogger;

/**
 * Monolog trait.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
trait MonologTrait
{
    
/**
     * Adds a log record.
     *
     * @param string  $message The log message
     * @param array   $context The log context
     * @param integer $level   The logging level
     *
     * @return Boolean Whether the record has been processed
     */
    
public function log($message, array $context = array(), $level Logger::INFO)
    {
        return 
$this['monolog']->addRecord($level$message$context);
    }
}
Онлайн: 1
Реклама