##
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements.  See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License.  You may obtain a copy of the License at
##
##    http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## $Rev: 1353835 $ $Date: 2012-06-26 14:56:24 +0800 (Tue, 26 Jun 2012) $
##

log4j.rootLogger=INFO, CONSOLE, FILE

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=${org.apache.geronimo.log.ConsoleLogLevel}
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %-5p [%c{1}] %m%n

log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.threshold=TRACE
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%d{ISO8601} %-5p [%c{1}] %m%n

#
# Note, changing log4j.appender.FILE.append=false will result in logs being 
# overwritten without archiving the previous version of the log.
#
log4j.appender.FILE.append=true
log4j.appender.FILE.file=${org.apache.geronimo.server.dir}/var/log/client.log
log4j.appender.FILE.bufferedIO=false
log4j.appender.FILE.maxBackupIndex=10
log4j.appender.FILE.maxFileSize=10MB

#
# Example: enable trace logging from CONSOLE appender
#
#log4j.appender.CONSOLE.Threshold=TRACE

#
# Example: enable trace messages from foo.bar category
#
#log4j.logger.foo.bar=TRACE

# Aries Blueprint - hide "waiting for namespace handler" warnings
log4j.logger.org.apache.aries.blueprint.container.BlueprintContainerImpl=ERROR

# Aries Blueprint - hide "ServiceUnavailableException: The Blueprint container is being or has been destroyed" INFO message in log when shutdown geronimo.
log4j.logger.org.apache.aries.blueprint.container.BeanRecipe=WARN

# Aries Blueprint - hide "Managed persistence context support is no longer available for use with the Aries Blueprint container" WARN message in log when shutdown server
log4j.logger.org.apache.aries.jpa.blueprint.aries=ERROR

# Aries Blueprint - hide "The TransactionSynchronizationRegistry used to manage persistence contexts is no longer available..." WARN message in log when shutdown server
log4j.logger.org.apache.aries.jpa.container.context=ERROR
