LoggerAppenderPDO appender logs to a database using the PHP's PDO extension.
## Configurable parameters: ##
Located in /log4php/appenders/LoggerAppenderPDO.php (line 42)
LoggerConfigurable | --LoggerAppender | --LoggerAppenderPDO
The PDO instance.
DSN string used to connect to the database.
A comma separated list of LoggerPatternLayout format strings which replace the "?" in $insertSQL.
Must contain the same number of comma separated conversion patterns as there are question marks in insertSQL.
The insert query.
The __TABLE__ placeholder will be replaced by the table name from $table.
The questionmarks are part of the prepared statement, and they must match the number of conversion specifiers in insertPattern.
Database password.
Prepared statement for the insert query.
The number of recconect attempts to make on failed append.
This appender does not require a layout.
Name of the table to which to append log events.
Database user name.
Inherited from LoggerAppender
LoggerAppender::$closed
LoggerAppender::$filter
LoggerAppender::$layout
LoggerAppender::$name
LoggerAppender::$threshold
Acquires a database connection based on parameters.
Parses the insert pattern to create a chain of converters which will be used in forming query parameters from logging events.
Appends a new event to the database.
If writing to database fails, it will retry by re-establishing the connection up to $reconnectAttempts times. If writing still fails, the appender will close.
Closes the connection to the logging database
Connects to the database, and prepares the insert query.
Converts the logging event to a series of database parameters by using the converter chain which was set up on activation.
Returns the active database handle or null if not established.
Returns the DSN string.
Returns the insert pattern.
Returns the insert SQL.
Returns the password.
Returns the table name.
Returns the username.
Sets the DSN string.
Sets the insert pattern.
Sets the insert SQL.
Sets the password.
Sets the table name.
Sets the username.
Inherited From LoggerAppender
LoggerAppender::__construct()
LoggerAppender::activateOptions()
LoggerAppender::addFilter()
LoggerAppender::append()
LoggerAppender::clearFilters()
LoggerAppender::close()
LoggerAppender::doAppend()
LoggerAppender::getDefaultLayout()
LoggerAppender::getFilter()
LoggerAppender::getFirstFilter()
LoggerAppender::getLayout()
LoggerAppender::getName()
LoggerAppender::getThreshold()
LoggerAppender::isAsSevereAsThreshold()
LoggerAppender::requiresLayout()
LoggerAppender::setLayout()
LoggerAppender::setName()
LoggerAppender::setThreshold()
LoggerAppender::warn()
LoggerAppender::__destruct()
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:52 +0900 by phpDocumentor 1.4.4