Monolog\Logger::__construct PHP Method

__construct() public method

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

Usage Example

Beispiel #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