null if no is filter is set. * @return LoggerFilter */ abstract function getFilter(); /** * Release any resources allocated. * Subclasses of {@link LoggerAppender} should implement * this method to perform proper closing procedures. * @abstract */ abstract public function close(); /** * This method performs threshold checks and invokes filters before * delegating actual logging to the subclasses specific append() method. * @param LoggerLoggingEvent $event * @abstract */ abstract public function doAppend($event); /** * Get the name of this appender. * @return string */ abstract public function getName(); /** * Do not use this method. * * @param object $errorHandler */ abstract public function setErrorHandler($errorHandler); /** * Do not use this method. * @return object Returns the ErrorHandler for this appender. */ abstract public function getErrorHandler(); /** * Set the Layout for this appender. * * @param LoggerLayout $layout */ abstract public function setLayout($layout); /** * Returns this appender layout. * @return LoggerLayout */ abstract public function getLayout(); /** * Set the name of this appender. * * The name is used by other components to identify this appender. * * @param string $name */ abstract public function setName($name); /** * Configurators call this method to determine if the appender * requires a layout. * *
If this method returns true, meaning that layout is required, * then the configurator will configure a layout using the configuration * information at its disposal. If this method returns false, * meaning that a layout is not required, then layout configuration will be * skipped even if there is available layout configuration * information at the disposal of the configurator.
* *In the rather exceptional case, where the appender * implementation admits a layout but can also work without it, then * the appender should return true.
* * @return boolean */ abstract public function requiresLayout(); }