49 if (!extension_loaded(
'openssl')) {
78 parent::write($record);
103 $header =
"POST " . self::FLEEP_HOOK_URI . $this->token .
" HTTP/1.1\r\n";
104 $header .=
"Host: " . self::FLEEP_HOST .
"\r\n";
105 $header .=
"Content-Type: application/x-www-form-urlencoded\r\n";
106 $header .=
"Content-Length: " . strlen($content) .
"\r\n";
121 'message' => $record[
'formatted'],
buildContent($record)
Builds the body of API call.
buildHeader($content)
Builds the header of the API Call.
const DEBUG
Detailed debug information.
getDefaultFormatter()
Returns the default formatter to use with this handler.
Stores to any socket - uses fsockopen() or pfsockopen().
__construct($token, $level=Logger::DEBUG, $bubble=true)
Construct a new Fleep.io Handler.
Sends logs to Fleep.io using Webhook integrations.
write(array $record)
Handles a log record.
Exception can be thrown if an extension for an handler is missing.
Create styles array
The data for the language used.
generateDataStream($record)
{}
closeSocket()
Close socket, if open.