Logentries\Handler\LogentriesHandler::__construct PHP Method

__construct() public method

public __construct ( string $token, integer $level = Logger::DEBUG, boolean $bubble = true, Socket $socket = null )
$token string Token UUID for Logentries logfile
$level integer The minimum logging level at which this handler will be triggered
$bubble boolean Whether the messages that are handled can bubble up the stack or not
$socket Logentries\Socket
    public function __construct($token, $level = Logger::DEBUG, $bubble = true, Socket $socket = null)
    {
        $this->token = $token;
        $this->socket = $socket;
        if (!$this->socket) {
            $this->socket = new Socket('data.logentries.com', 80);
        }
        parent::__construct($level, $bubble);
    }