The log4j API provides the object org.apache.log4j.jdbc. JDBCAppender object can put logging information in a particular database.