將日志保存至數據庫適配器:Log4j JDBCAppender
使用Log4j日志需要把信息記錄在數據庫中時使用org.apache.log4j.jdbcplus.JDBCAppender 代替原來的 org.apache.log4j.jdbc.JDBCAppender 在使用中不會出現因為特殊字符引起的問題,更加靈活的配置和管理。
Log to (relational) database
Flexible connection handling (does not yet support DataSource)
Flexible sql commands to execute actual logging
Prepared Statements and Stored Procedures (J2SDK 1.4+) supported
Enables logging of messages with special characters such as ' (single quote) and , (comma)
Flexible table and column structure
Flexible id generation
Multiple PatternLayout applications allowed; in one or more columns
Supports J2SDK 1.3, 1.4 and 1.5
Supports Log4j 1.2.9 and current development
</ul>
項目主頁:http://www.baiduhome.net/lib/view/home/1367643421402
本文由用戶
jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!