Sends errors to Loggly.

CloneableInstantiable
ExtendsMonolog\Handler\Handler
Monolog\Handler\AbstractHandler
Monolog\Handler\AbstractProcessingHandler
ImplementsMonolog\Handler\FormattableHandlerInterface
Monolog\Handler\HandlerInterface
Monolog\Handler\ProcessableHandlerInterface
Monolog\ResettableInterface
Methods
public __construct(string $token, $level = 100, bool $bubble = true)
 
public Monolog\Handler\Handler::__destruct()
public Monolog\Handler\Handler::__sleep()
public addTag( $tag) : self
 
    public Monolog\Handler\Handler::close() : void
     

    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::getBubble() : bool
     

    Gets the bubbling behavior.

    • return bool true means that this handler allows bubbling. false means that bubbling is not permitted.
    public Monolog\Handler\AbstractProcessingHandler::getFormatter() : Monolog\Formatter\FormatterInterface
     

    {@inheritdoc}

    public Monolog\Handler\AbstractHandler::getLevel() : int
     

    Gets minimum logging level at which this handler will be triggered.

    • return int
    public Monolog\Handler\AbstractProcessingHandler::handle(array $record) : bool
     

    {@inheritdoc}

    public handleBatch(array $records) : void
    public Monolog\Handler\AbstractHandler::isHandling(array $record) : bool
     

    {@inheritdoc}

    public Monolog\Handler\AbstractProcessingHandler::popProcessor() : callable
     

    {@inheritdoc}

    public Monolog\Handler\AbstractProcessingHandler::pushProcessor(callable $callback) : Monolog\Handler\HandlerInterface
     

    {@inheritdoc}

    • suppress PhanTypeMismatchReturn
    public Monolog\Handler\AbstractProcessingHandler::reset()
    public Monolog\Handler\AbstractHandler::setBubble(bool $bubble) : self
     

    Sets the bubbling behavior.

    • return self
    public Monolog\Handler\AbstractProcessingHandler::setFormatter(Monolog\Formatter\FormatterInterface $formatter) : Monolog\Handler\HandlerInterface
     

    {@inheritdoc}

    • suppress PhanTypeMismatchReturn
    public Monolog\Handler\AbstractHandler::setLevel( $level) : self
     

    Sets minimum logging level at which this handler will be triggered.

    • return self
    public setTag( $tag) : self
     
      Constants
      protected Monolog\Handler\LogglyHandler::ENDPOINT_BATCH = 'bulk'
      protected Monolog\Handler\LogglyHandler::ENDPOINT_SINGLE = 'inputs'
      protected Monolog\Handler\LogglyHandler::HOST = 'logs-01.loggly.com'
      Properties
      protected Monolog\Handler\AbstractHandler::$bubble
      protected $curlHandlers
       

      Caches the curl handlers for every given endpoint.

      • var array
      protected Monolog\Handler\AbstractProcessingHandler::$formatter
       
      • var FormatterInterface
      protected Monolog\Handler\AbstractHandler::$level
      protected Monolog\Handler\AbstractProcessingHandler::$processors
       
      • var callable[]
      protected $tag
      protected $token
      Methods
      protected getCurlHandler(string $endpoint)
       

      Loads and returns the shared curl handler for the given endpoint.

      • return resource
      protected getDefaultFormatter() : Monolog\Formatter\FormatterInterface
      protected Monolog\Handler\AbstractProcessingHandler::processRecord(array $record) : array
       

      Processes a record.

      protected Monolog\Handler\AbstractProcessingHandler::resetProcessors() : void
      protected send(string $data, string $endpoint) : void
      protected write(array $record) : void
      Methods
      private loadCurlHandler(string $endpoint)
       

      Starts a fresh curl session for the given endpoint and returns its handler.

      • return resource
      © 2020 Bruce Wells
      Search Namespaces \ Classes
      ConfigurationNumbers (0-9.) only