|
@@ -0,0 +1,108 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
+<!--
|
|
|
|
+/**
|
|
|
|
+ * 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.
|
|
|
|
+ */
|
|
|
|
+-->
|
|
|
|
+<configuration supports_adding_forbidden="true">
|
|
|
|
+
|
|
|
|
+ <property>
|
|
|
|
+ <name>content</name>
|
|
|
|
+ <description>admin-log4j.properties</description>
|
|
|
|
+ <value>
|
|
|
|
+#
|
|
|
|
+# 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.
|
|
|
|
+#
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+log4j.rootLogger = warn,xa_log_appender
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# xa_logger
|
|
|
|
+log4j.appender.xa_log_appender=org.apache.log4j.DailyRollingFileAppender
|
|
|
|
+log4j.appender.xa_log_appender.file=${logdir}/xa_portal.log
|
|
|
|
+log4j.appender.xa_log_appender.datePattern='.'yyyy-MM-dd
|
|
|
|
+log4j.appender.xa_log_appender.append=true
|
|
|
|
+log4j.appender.xa_log_appender.layout=org.apache.log4j.PatternLayout
|
|
|
|
+log4j.appender.xa_log_appender.layout.ConversionPattern=%d [%t] %-5p %C{6} (%F:%L) - %m%n
|
|
|
|
+# xa_log_appender : category and additivity
|
|
|
|
+log4j.category.org.springframework=warn,xa_log_appender
|
|
|
|
+log4j.additivity.org.springframework=false
|
|
|
|
+
|
|
|
|
+log4j.category.org.apache.ranger=info,xa_log_appender
|
|
|
|
+log4j.additivity.org.apache.ranger=false
|
|
|
|
+
|
|
|
|
+log4j.category.xa=info,xa_log_appender
|
|
|
|
+log4j.additivity.xa=false
|
|
|
|
+
|
|
|
|
+# perf_logger
|
|
|
|
+log4j.appender.perf_appender=org.apache.log4j.DailyRollingFileAppender
|
|
|
|
+log4j.appender.perf_appender.file=${logdir}/ranger_admin_perf.log
|
|
|
|
+log4j.appender.perf_appender.datePattern='.'yyyy-MM-dd
|
|
|
|
+log4j.appender.perf_appender.append=true
|
|
|
|
+log4j.appender.perf_appender.layout=org.apache.log4j.PatternLayout
|
|
|
|
+log4j.appender.perf_appender.layout.ConversionPattern=%d [%t] %m%n
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# sql_appender
|
|
|
|
+log4j.appender.sql_appender=org.apache.log4j.DailyRollingFileAppender
|
|
|
|
+log4j.appender.sql_appender.file=${logdir}/xa_portal_sql.log
|
|
|
|
+log4j.appender.sql_appender.datePattern='.'yyyy-MM-dd
|
|
|
|
+log4j.appender.sql_appender.append=true
|
|
|
|
+log4j.appender.sql_appender.layout=org.apache.log4j.PatternLayout
|
|
|
|
+log4j.appender.sql_appender.layout.ConversionPattern=%d [%t] %-5p %C{6} (%F:%L) - %m%n
|
|
|
|
+
|
|
|
|
+# sql_appender : category and additivity
|
|
|
|
+log4j.category.org.hibernate.SQL=warn,sql_appender
|
|
|
|
+log4j.additivity.org.hibernate.SQL=false
|
|
|
|
+
|
|
|
|
+log4j.category.jdbc.sqlonly=fatal,sql_appender
|
|
|
|
+log4j.additivity.jdbc.sqlonly=false
|
|
|
|
+
|
|
|
|
+log4j.category.jdbc.sqltiming=warn,sql_appender
|
|
|
|
+log4j.additivity.jdbc.sqltiming=false
|
|
|
|
+
|
|
|
|
+log4j.category.jdbc.audit=fatal,sql_appender
|
|
|
|
+log4j.additivity.jdbc.audit=false
|
|
|
|
+
|
|
|
|
+log4j.category.jdbc.resultset=fatal,sql_appender
|
|
|
|
+log4j.additivity.jdbc.resultset=false
|
|
|
|
+
|
|
|
|
+log4j.category.jdbc.connection=fatal,sql_appender
|
|
|
|
+log4j.additivity.jdbc.connection=false
|
|
|
|
+ </value>
|
|
|
|
+ <value-attributes>
|
|
|
|
+ <type>content</type>
|
|
|
|
+ <show-property-name>false</show-property-name>
|
|
|
|
+ </value-attributes>
|
|
|
|
+ </property>
|
|
|
|
+
|
|
|
|
+</configuration>
|