Abstract class that defines output logs strategies.
Located in /log4php/LoggerAppender.php (line 27)
LoggerConfigurable | --LoggerAppender
Class | Description |
---|---|
LoggerAppenderNull | A NullAppender merely exists, it never outputs a message to any device. |
LoggerAppenderFirePHP | Logs messages as HTTP headers using the FirePHP Insight API. |
LoggerAppenderEcho | LoggerAppenderEcho uses the PHP echo() function to output events. |
LoggerAppenderFile | LoggerAppenderFile appends log events to a file. |
LoggerAppenderSyslog | Log events to a system log using the PHP syslog() function. |
LoggerAppenderConsole | LoggerAppenderConsole appends log events either to the standard output stream (php://stdout) or the standard error stream (php://stderr). |
LoggerAppenderMail | LoggerAppenderMail appends log events via email. |
LoggerAppenderPDO | LoggerAppenderPDO appender logs to a database using the PHP's PDO extension. |
LoggerAppenderMailEvent | LoggerAppenderMailEvent appends individual log events via email. |
LoggerAppenderMongoDB | Appender for writing to MongoDB. |
LoggerAppenderPhp | LoggerAppenderPhp logs events by creating a PHP user-level message using the PHP's trigger_error()function. |
LoggerAppenderSocket | LoggerAppenderSocket appends to a network socket. |
Set to true when the appender is closed. A closed appender will not accept any logging requests.
The first filter in the filter chain.
The appender's layout. Can be null if the appender does not use a layout.
Appender name. Used by other components to identify this appender.
Set to true if the appender requires a layout.
True by default, appenders which do not use a layout should override this property to false.
Appender threshold level. Events whose level is below the threshold will not be logged.
Default constructor.
Prepares the appender for logging.
Derived appenders should override this method if option structure requires it.
Adds a filter to the end of the filter chain.
Forwards the logging event to the destination.
Derived appenders should implement this method to perform actual logging.
Clears the filter chain by removing all the filters in it.
Releases any resources allocated by the appender.
Derived appenders should override this method to perform proper closing procedures.
Performs threshold checks and invokes filters before delegating logging to the subclass' specific append() method.
Returns the default layout for this appender. Can be overriden by derived appenders.
Returns the first filter in the filter chain.
The return value may be null if no is filter is set.
Returns the first filter in the filter chain.
The return value may be null if no is filter is set.
Retruns the appender name.
Checks whether the message level is below the appender's threshold.
If there is no threshold set, then the return value is always true.
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.
Sets the appender name.
Sets the appender threshold.
Triggers a warning for this logger with the given message.
Inherited From LoggerConfigurable
LoggerConfigurable::setBoolean()
LoggerConfigurable::setFileSize()
LoggerConfigurable::setInteger()
LoggerConfigurable::setLevel()
LoggerConfigurable::setNumeric()
LoggerConfigurable::setPositiveInteger()
LoggerConfigurable::setString()
LoggerConfigurable::warn()
Documentation generated on Tue, 12 Mar 2024 14:04:50 +0900 by phpDocumentor 1.4.4