40 if ($useSSL && !extension_loaded(
'openssl')) {
41 throw new MissingExtensionException(
'The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler');
45 ?
'ssl://' . $region .
'.data.logs.insight.rapid7.com:443'
46 : $region .
'.data.logs.insight.rapid7.com:80';
60 return $this->logToken .
' ' . $record[
'formatted'];
An exception for terminatinating execution or to throw for unit testing.
Inspired on LogEntriesHandler.
generateDataStream($record)
{}
__construct($token, $region='us', $useSSL=true, $level=Logger::DEBUG, $bubble=true)
Exception can be thrown if an extension for an handler is missing.
Stores to any socket - uses fsockopen() or pfsockopen().
const DEBUG
Detailed debug information.