log4jdbc is a Java JDBC driver that can log SQL and/or JDBC calls (and optionally SQL timing information) for other JDBC drivers using the Simple Logging Facade For Java (SLF4J) logging system.
Questions tagged [log4jdbc]
39 questions
0
votes
1 answer
Log4j RollingFileAppender unknown error
Error corresponding to log4j.
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.
log4j:WARN No such property [datePattern] in…

NitKrish
- 96
- 4
- 16
0
votes
2 answers
Clojure REST API: Logging issue
I have figured out one issue with logging in clojure api.
I try to implement logging mechanism for API Requests and SQL statements.
Project.clj
(defproject clojure-dauble-business-api "0.1.0-SNAPSHOT"
:description "FIXME: write…

Srini
- 823
- 5
- 10
- 29
0
votes
3 answers
ClassNotFound from shared library jar
I have developed an application which is used to log record into Database with log4j2.xml using JDBCAppender. I have followed the following instruction here :-…

Sri Arun
- 133
- 11
0
votes
1 answer
log4jdbc sql timing of both : executing PreparedStatement SELECT + retrieving whole result set
Is there an easy way to measure executiontime of a whole block ?
This is a closed code big Java WAR application so I think it is hard to introduce startTime/endTime blocks by some AOP.
// startTime
PreparedStatement prep = ...
ResultSet rs =…

j23
- 160
- 9
0
votes
1 answer
Capturing sql queries along with bind parameters into log files
I used p6spy/log4jdbc to capture the sql queries along with the bind parameters, connecting to Oracle database (hibernate 4.3.5 and oracle 10g is used) and push it to log files which are configured using logback.
The datasource is created by…

Sreedhar
- 1
0
votes
2 answers
how to log hibernate parameters
I have project pf JPA. My logs looks like this:
Hibernate: insert into TEST(DESCRIPTION, NAME, version, id) values (?, ?, ?, ?)
[08/12/14 06:26:26:026 GET] TRACE sql.BasicBinder: binding parameter [1] as [VARCHAR] - [desc]
[08/12/14 06:26:26:026…

grep
- 5,465
- 12
- 60
- 112
0
votes
1 answer
Logging traces over JDBC with log4j 1.x
We are using log4j 1.x as logging platform for quite some time now. Most of our applications are based on Spring Framework which also uses log4j 1.x. Now we wish to write logs in database and we know (heard) that this (official) JDBC appender is…

fritz
- 111
- 1
- 11
0
votes
1 answer
log4j MDC's visibility is instance level? global level?
I am working in j2ee application. we are using session bean (20 instance). in that MDC used to log the message id for each request.
import org.apache.log4j.Logger;
import org.apache.log4j.MDC;
public class ReqEng{
void process(){
Logger logger =…

Karthikeyan Sukkoor
- 968
- 2
- 6
- 24