Monolog\Logger::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $name )
$name string The logging channel
    public function __construct($name)
    {
        $this->name = $name;
    }

Usage Example

Пример #1
0
 public function __construct($channel = self::CHANNEL_APPLICATION)
 {
     parent::__construct($channel);
     $this->addDatabaseHandler();
     $le = new Event($this);
     Events::dispatch('on_logger_create', $le);
 }
All Usage Examples Of Monolog\Logger::__construct