Monolog\Handler\CubeHandler
Logs to Cube.
- Author: Wan Chen <kami@kamisama.me>
Synopsis
class CubeHandler
extends AbstractProcessingHandler
{
- // members
- private $udpConnection;
- private $httpConnection;
- private $scheme;
- private $host;
- private $port;
- private array $acceptedSchemes;
- // Inherited members from AbstractHandler
- protected $level;
- protected $bubble;
- protected FormatterInterface $formatter;
- protected array $processors;
- // methods
- public void __construct()
- protected void connectUdp()
- protected void connectHttp()
- protected void write()
- private void writeUdp()
- private void writeHttp()
- // Inherited methods from AbstractProcessingHandler
- public void handle()
- protected abstract void write()
- protected array processRecord()
- // Inherited methods from AbstractHandler
- public void __construct()
- public void isHandling()
- public void handleBatch()
- public void close()
- public void pushProcessor()
- public void popProcessor()
- public void setFormatter()
- public void getFormatter()
- public void setLevel()
- public integer getLevel()
- public void setBubble()
- public Boolean getBubble()
- public void __destruct()
- protected FormatterInterface getDefaultFormatter()
Hierarchy
Members
private
- $acceptedSchemes
- $host
- $httpConnection
- $port
- $scheme
- $udpConnection
protected
- $bubble
- $formatter — Monolog\Formatter\FormatterInterface
- $level
- $processors
Methods
private
protected
- connectHttp() — Establish a connection to a http server
- connectUdp() — Establish a connection to an UDP socket
- write() — {@inheritdoc}
Inherited from Monolog\Handler\AbstractProcessingHandler
protected
- processRecord() — Processes a record.
- write() — Writes the record down to the log of the implementing handler
public
- handle() — {@inheritdoc}
Inherited from Monolog\Handler\AbstractHandler
protected
- getDefaultFormatter() — Gets the default formatter.
public
- close() — Closes the handler.
- getBubble() — Gets the bubbling behavior.
- getFormatter() — {@inheritdoc}
- getLevel() — Gets minimum logging level at which this handler will be triggered.
- handleBatch() — {@inheritdoc}
- isHandling() — {@inheritdoc}
- popProcessor() — {@inheritdoc}
- pushProcessor() — {@inheritdoc}
- setBubble() — Sets the bubbling behavior.
- setFormatter() — {@inheritdoc}
- setLevel() — Sets minimum logging level at which this handler will be triggered.