log4j.rootCategory=debug, rolling
# log4j.rootCategory=warn, stdout, rolling, socketLogger, lf5, xml, lf5Rolling
# Example of adding a specific package/class at a different
# logging level...
# --log everything in the com.johnmunsch package at debug level
# ..even better, send it to a different appender. Note, however, that
# this doesn't mean that any loggers from a lower level won't be used:
# everything still inherits, so this new logger is used _in_addition_to_
# the loggers it would have otherwise already used.
log4j.category.com.johnmunsch=debug, socketLogger
# --on the other hand, everything in the
# com.johnmunsch.stuff class _shouldn't_ log
# unless the log message is at 'warn' level or worse.
# (It just so happens that stuff generates a _lot_ of
# logging when it's used)
log4j.category.com.johnmunsch.stuff=warn
# --also, it just so happens that we have a different
# appender that we're using that we want to have
# log information from a specific location, and we
# don't want to send that information anywhere else.
log4j.category.com.johnmunsch.otherstuff=warn, xml
log4j.additivity.com.johnmunsch.otherstuff=false
# BEGIN APPENDER: CONSOLE APPENDER (stdout)
# first: type of appender (fully qualified class name)
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
# second: Any configuration information needed for that appender.
# Many appenders require a layout.
log4j.appender.stdout.layout=org.apache.log4j.TTCCLayout
# log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout
# Possible information overload?
# log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# additionally, some layouts can take additional information --
# like the ConversionPattern for the PatternLayout.
# log4j.appender.stdout.layout.ConversionPattern=%d %-5p %-17c{2} (%30F:%L) %3x
- %m%n
# END APPENDER: CONSOLE APPENDER (stdout)
# BEGIN APPENDER: ROLLING FILE APPENDER (rolling)
# first: type of appender (fully qualified class name)
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
# second: Any configuration information needed for that appender.
# Many appenders require a layout.
log4j.appender.rolling.File=example.log
log4j.appender.rolling.MaxFileSize=100KB
# Keep one backup file
log4j.appender.rolling.MaxBackupIndex=1
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%p %t %c - %m%n
# Possible information overload?
# log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# additionally, some layouts can take additional information --
# like the ConversionPattern for the PatternLayout.
# log4j.appender.stdout.layout.ConversionPattern=%d %-5p %-17c{2} (%30F:%L) %3x
- %m%n
# END APPENDER: ROLLING FILE APPENDER (rolling)
# BEGIN APPENDER: SOCKET APPENDER (socketLogger)
# Note: if you don't have anything configured to accept the events
# from the socketLogger appender, you'll see an exception on program
# startup (to console), and occasional status messages (to console)
# on if the log4j system has managed to connect to the specified
# socket..
log4j.appender.socketLogger=org.apache.log4j.net.SocketAppender
log4j.appender.socketLogger.RemoteHost=localhost
log4j.appender.socketLogger.Port=4445
log4j.appender.socketLogger.LocationInfo=false
# END APPENDER: SOCKET APPENDER (socketLogger)
# BEGIN APPENDER: LogFactor5 APPENDER (lf5)
# LogFactor5 is a Swing window that directly receives logging messages and
# displays them. It offers filtering, searching etc. similar to Chainsaw or
# Lumbermill but you don't have to use a socket appender so it should be faster
# when the logging display is on the same machine as the program issuing
# messages.
log4j.appender.lf5=org.apache.log4j.lf5.LF5Appender
log4j.appender.lf5.MaxNumberOfRecords=1000
# END APPENDER: LogFactor5 APPENDER (lf5)
# BEGIN APPENDER: XML APPENDER (xml)
# A standard file appender where we have put an XML layout onto the output
# event records. A file put out using this technique can be loaded after
# the fact into Chainsaw for viewing, filtering, searching, etc.
log4j.appender.xml=org.apache.log4j.FileAppender
log4j.appender.xml.file=example_xml.log
log4j.appender.xml.append=false
log4j.appender.xml.layout=org.apache.log4j.xml.XMLLayout
# END APPENDER: XML APPENDER (xml)
# BEGIN APPENDER: LogFactor5 Rolling APPENDER (lf5Rolling)
# Like the XML appender above, this is a specialized format designed to be read
# from a tool. In this case LogFactor5 can load up files in this format for
# after the fact review.
log4j.appender.lf5Rolling=org.apache.log4j.RollingFileAppender
log4j.appender.lf5Rolling.File=example_lf5.log
log4j.appender.lf5Rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.lf5Rolling.layout.ConversionPattern=[slf5s.start]%d{DATE}[slf5s.DATE]%n
%p[slf5s.PRIORITY]%n%x[slf5s.NDC]%n%t[slf5s.THREAD]%n%c[slf5s.CATEGORY]%n
%l[slf5s.LOCATION]%n%m[slf5s.MESSAGE]%n%n
# END APPENDER: LogFactor5 Rolling APPENDER (lf5Rolling)
ref
========================================
# Set root logger level to (ALL, DEBUG, INFO, WARN, ERROR, FATAL).
#log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE, adminLogger
log4j.rootCategory=ALL, CONSOLE, LOGFILE
# -----------------------------
# Setup category logger
# -----------------------------
#log4j.category.com.cv.tibs=ERROR, adminLogger
#log4j.category.com.cv.tibs.enquiry=DEBUG, CONSOLE, LOGFILE, adminLogger
#log4j.category.com.cv.tibs.service.util.TIBSFilter=DEBUG, CONSOLE, LOGFILE, adminLogger
#log4j.category.com.cv.tibs.service.internal=ERROR, adminLogger
#log4j.category.com.cv.tibs.service.internal.util=ERROR, adminLogger
#log4j.category.com.cv.tibs.service.internal.UserEnquiry=ERROR, adminLogger
#log4j.additivity.com.cv.tibs=false
# -----------------------------
# Set the enterprise logger priority to FATAL
# -----------------------------
log4j.logger.org.apache.axis2.enterprise=INFO
log4j.logger.de.hunsicker.jalopy.io=INFO
log4j.logger.httpclient.wire.header=INFO
log4j.logger.org.apache.commons.httpclient=INFO
#log4j.logger.com.cv.tibs=DEBUG
#log4j.logger.com.cv.tibs.service.internal.UserEnquiry=ERROR
#log4j.logger.com.cv.tibs.service.internal=ERROR
#log4j.logger.com.cv.tibs.service.internal.util=ERROR
# -----------------------------
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
# -----------------------------
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
#log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
log4j.appender.CONSOLE.layout.ConversionPattern =[%d{yyyy-MM-dd HH:mm:ss,SSS}] | [%t] | %-5p | %c | %m | %n
# -----------------------------
# LOGFILE is set to be a File appender using a PatternLayout.
# -----------------------------
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
#log4j.appender.LOGFILE.File=axis2.log
log4j.appender.LOGFILE.File=C:\\clicks\\wsear\\axis2.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
#log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
log4j.appender.LOGFILE.layout.ConversionPattern =[%d{yyyy-MM-dd HH:mm:ss,SSS}] | [%t] | %-5p | %c | %m | %n
# Keep 100 old files around.
log4j.appender.LOGFILE.MaxBackupIndex=10
log4j.appender.LOGFILE.MaxFileSize=10240KB
# -----------------------------
# TIBSWS wsAppender
# -----------------------------
# wsLogger is set to be a FileAppender.
log4j.logger.com.cv.tibs.chequemanagement=DEBUG, wsLogger
log4j.logger.com.cv.tibs.enquiry=DEBUG, wsLogger
log4j.logger.com.cv.tibs.favaccountmanagement=DEBUG, wsLogger
log4j.logger.com.cv.tibs.onetimeownft=DEBUG, wsLogger
log4j.logger.com.cv.tibs.remittance=DEBUG, wsLogger
log4j.logger.com.cv.tibs.security=DEBUG, wsLogger
log4j.logger.com.cv.tibs.transaction=DEBUG, wsLogger
log4j.logger.com.cv.tibs.usermanagement=DEBUG, wsLogger
log4j.logger.com.cv.tibs.service.util.TIBSFilter=DEBUG, wsLogger
log4j.appender.wsLogger=org.apache.log4j.RollingFileAppender
log4j.appender.wsLogger.File=C:\\clicks\\wsear\\io.log
log4j.appender.wsLogger.layout=org.apache.log4j.PatternLayout
# Keep 100 old files around.
log4j.appender.wsLogger.MaxBackupIndex=100
log4j.appender.wsLogger.MaxFileSize=10240KB
# Format almost same as WebSphere's common log format.
log4j.appender.wsLogger.layout.ConversionPattern =[%d{yyyy-MM-dd HH:mm:ss,SSS}] %-5p %c %x - %m %n
Enhancing your expertise in Java, Kubernetes, Spring Boot, AWS, BTC, and ETH can significantly elevate your career prospects in the ever-evolving tech industry. Welcome to my blog, where I share insights and resources to help you master these key technologies and stay ahead of the curve. Enhance your tech skills with insights on Java, Kubernetes, Spring Boot, AWS, BTC, and ETH. Master advanced topics and stay updated with practical tips and tutorials!
Wednesday, April 30, 2008
log4j
Subscribe to:
Posts (Atom)