# NOTA: UN BON TUTORIAL DE LOG4JAVA:										
# http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/log4j/log4j.html		

# An example log4j configuration file that outputs to System.out.
# The output info consists of relative time, priority, thread name,
# category name, nested diagnostic context, the and the message in
# that order.

# For the general syntax of propperty based caonfiguration files see
# the documenation of org.apache.log4j.PropertyConfigurator.

# The root category uses the appender called A1. Since no priority is
# specified, the root category assumes the default priority for root
# which is DEBUG in log4j. The root category is the only category that
# has a default priority. All other categories do not have a default
# priority. in which case the priority is inherited from the
# hierarchy.

log4j.rootCategory=INFO, R

# ***** A uses PatternLayout.
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%d] %-5p %x %m\n
#### Second appender writes to a file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${JP.rootPath}logs.log

# Control the maximum log file size
log4j.appender.R.MaxFileSize=300KB
# Archive log files (one backup file here)
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m %d%n

# In this example, we are not really interested in INNER loop or SWAP
# messages. Try changing the priorities of these categories.

log4j.category.automatikaLogger=DEBUG
