7021445: NetIQ Access Manager NIDP server enable jgroups debug logging

create a “/opt/novell/nids/lib/webapp/WEB-INF/classes/log4j.properties” file:

# Set root logger priority to FATAL and its only appender to CONSOLE.

log4j.rootLogger=INFO, LOGFILE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender

log4j.appender.CONSOLE.Threshold=DEBUG

log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout

log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n

log4j.logger.org.jgroups=trace,LOGFILE

#log4j.logger.org.jgroups.blocks=trace,LOGFILE

#log4j.logger.org.jgroups.protocols=trace,LOGFILE

#log4j.logger.org.jgroups.protocols.pbcast=trace,LOGFILE

#log4j.logger.org.jgroups.persistence=trace,LOGFILE

#log4j.logger.org.jgroups.conf=DEBUG,LOGFILE

#log4j.logger.org.jgroups.jmx=DEBUG,LOGFILE

#log4j.logger.org.jgroups.jmx.protocols=DEBUG,LOGFILE

#log4j.logger.org.jgroups.jmx.protocols.pbcast=DEBUG, LOGFILE

#log4j.logger.org.jgroups.stack=DEBUG,LOGFILE

#log4j.logger.org.jgroups.util=DEBUG,LOGFILE

# LOGFILE is set to be a File appender using a PatternLayout.

log4j.appender.LOGFILE=org.apache.log4j.FileAppender

log4j.appender.file.MaxFileSize=10MB

log4j.appender.file.MaxBackupIndex=10

log4j.appender.LOGFILE.File=/var/opt/novell/nam/logs/idp/tomcat/idp-log4j.log

log4j.appender.LOGFILE.Append=true

log4j.appender.LOGFILE.bufferedIO=true

log4j.appender.LOGFILE.ImmediateFlush=false

log4j.appender.LOGFILE.bufferedSize=16

log4j.appender.LOGFILE.Threshold=TRACE

log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout

log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L – %m%n

The above file will grow up to 10MB before it rolls over and create 10 backup files. For performance reasons logging will be buffered with a bugger size of 16KB. For further inforamtion on log4j please visit: “https://logging.apache.org/log4j/1.2/manual.html”

Related:

Leave a Reply