littypreethkr wrote:
Put
log4j.appender.STDOUT.Threshold = TRACE
You have put it as WARN
I would like to see the parameters ,plz help me how can display the parameters in console. I am using log4j.properties
### direct log messages to stdout ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c %x - %m%n
### direct log message to eligibility.log file ###
log4j.appender.eligibility=org.apache.log4j.RollingFileAppender
log4j.appender.eligibility.file=svcs/logs/server.log
log4j.appender.eligibility.MaxFileSize=100KB
log4j.appender.eligibility.MaxBackupIndex=5
log4j.appender.eligibility.layout=org.apache.log4j.PatternLayout
log4j.appender.eligibility.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c %x - %m%n
### root logger option ###
log4j.rootLogger=error, stdout
### Hibernate logging options ###
log4j.logger.net.sf.hibernate=error
### log JDBC bind parameters ###
log4j.logger.net.sf.hibernate.type=error
### log PreparedStatement cache activity ###
log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=error
## added by me to get the values instead of ('?'?'?') these parameterslog4j.appender.STDOUT.Threshold=TRACE
log4j.category.org.hibernate.SQL=TRACE, STDOUT
log4j.category.org.hibernate.type=TRACE, STDOUT
Thanks