# gCube Portal custom log4j Logger
#Author: Massimiliano Assante, ISTI-CNR

log4j.rootLogger=INFO, CA

log4j.appender.CA=org.apache.log4j.ConsoleAppender
 
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern=[PORTAL] %-4r [%t] %-5p %c %x - %m%n

# Display any warnings generated by our code
#log4j.category.org.globus=WARN

# Comment out the line below if you want to log every authorization 
# decision the notification consumer makes.
#log4j.category.org.globus.wsrf.impl.security.authorization.ServiceAuthorizationChain=ERROR

log4j.logger.org.gcube=INFO, GCUBE
log4j.appender.GCUBE.threshold=INFO
log4j.appender.GCUBE=org.apache.log4j.ConsoleAppender
log4j.appender.GCUBE.layout=org.apache.log4j.PatternLayout
log4j.appender.GCUBE.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} [%t,%M:%L] %
m%n

#AVOID LOGGING EHCACHE Hearbeat problem
log4j.logger.net.sf.ehcache.distribution.PayloadUtil=OFF, CA

log4j.logger.org.gcube.common.core.utils.events=INFO, CA
log4j.logger.org.gcube.portlets.user.homelibrary=INFO CA
log4j.logger.org.gcube.common.resources.kxml=ERROR, CA
log4j.logger.org.gcube.application.aquamaps.enhabling.Impl.ISCrawler=ERROR, CA
log4j.logger.com.netflix.astyanax.connectionpool.impl=ERROR, CA

##############
 log4j.logger.org.gcube.execution=INFO, RESOURCEREGISTRY
log4j.logger.org.gcube.rest=INFO, RESOURCEREGISTRY
log4j.logger.gr.uoa.di.madgik=INFO, RESOURCEREGISTRY
log4j.logger.DataNucleus=OFF

log4j.appender.RESOURCEREGISTRY=org.apache.log4j.RollingFileAppender
log4j.appender.RESOURCEREGISTRY.File=logs/resource-registry.log
log4j.appender.RESOURCEREGISTRY.MaxFileSize=10MB
log4j.appender.RESOURCEREGISTRY.MaxBackupIndex=100
log4j.appender.RESOURCEREGISTRY.Append=true
log4j.appender.RESOURCEREGISTRY.Encoding=UTF-8
log4j.appender.RESOURCEREGISTRY.layout = org.apache.log4j.PatternLayout
log4j.appender.RESOURCEREGISTRY.layout.ConversionPattern = %d [%t] %-5p %c:%L- %m%n

log4j.additivity.org.gcube.execution=false
log4j.additivity.org.gcube.rest=false
log4j.additivity.gr.uoa.di.madgik=false
log4j.additivity.DataNucleus=false