blob: ca7cfcd73b81845f1b30ead75ef359ac817cb76a [file] [log] [blame]
# 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.
# log only messages at INFO level and higher
root.logger=INFO,rps
audit.logger=INFO,audit
#
# Loggers
#
log4j.rootLogger=${root.logger}
log4j.logger.ranger_audit_logger=${audit.logger}
log4j.additivity.ranger_audit_logger=false
# fine tune verbosity of Hadoop and Ranger libraries logging, if needed
#log4j.logger.org.apache.ranger=WARN
#log4j.logger.org.apache.hadoop=WARN
#log4j.logger.org.apache.hawq.ranger=DEBUG
#
# Appenders
#
# console
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.target=System.err
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2}: %m%n
# RPS log file
log4j.appender.rps=org.apache.log4j.DailyRollingFileAppender
log4j.appender.rps.file=/usr/local/hawq_${hawq.name.version}/ranger/plugin-service/logs/rps.log
log4j.appender.rps.datePattern='.'yyyy-MM-dd
log4j.appender.rps.append=true
log4j.appender.rps.layout=org.apache.log4j.PatternLayout
log4j.appender.rps.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %C{6}: %m%n
# Ranger Audit log file
log4j.appender.audit=org.apache.log4j.DailyRollingFileAppender
log4j.appender.audit.file=/usr/local/hawq_${hawq.name.version}/ranger/plugin-service/logs/audit.log
log4j.appender.audit.datePattern='.'yyyy-MM-dd
log4j.appender.audit.append=true
log4j.appender.audit.layout=org.apache.log4j.PatternLayout
log4j.appender.audit.layout.ConversionPattern=%m%n