forked from apache/ranger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RANGER-1709:kms test case write logs to log file.
Signed-off-by: peng.jianhua <[email protected]>
- Loading branch information
1 parent
96b0c48
commit 1685bac
Showing
3 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Licensed 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. See accompanying LICENSE file. | ||
# | ||
|
||
# If the Java System property 'kms.log.dir' is not defined at KMS start up time | ||
# Setup sets its value to '${kms.home}/logs' | ||
|
||
log4j.appender.kms=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.kms.DatePattern='.'yyyy-MM-dd | ||
log4j.appender.kms.File=${kms.log.dir}/ranger-kms-${hostname}-${user}.log | ||
log4j.appender.kms.Append=true | ||
log4j.appender.kms.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.kms.layout.ConversionPattern=%d{ISO8601} %-5p %c{1} - %m%n | ||
|
||
log4j.appender.kms-audit=org.apache.log4j.DailyRollingFileAppender | ||
log4j.appender.kms-audit.DatePattern='.'yyyy-MM-dd | ||
log4j.appender.kms-audit.File=${kms.log.dir}/kms-audit-${hostname}-${user}.log | ||
log4j.appender.kms-audit.Append=true | ||
log4j.appender.kms-audit.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.kms-audit.layout.ConversionPattern=%d{ISO8601} %m%n | ||
|
||
log4j.logger.kms-audit=INFO, kms-audit | ||
log4j.additivity.kms-audit=false | ||
|
||
log4j.logger=INFO, kms | ||
log4j.rootLogger=WARN, kms | ||
log4j.logger.org.apache.hadoop.conf=INFO | ||
log4j.logger.org.apache.hadoop=INFO | ||
log4j.logger.org.apache.ranger=INFO | ||
log4j.logger.com.sun.jersey.server.wadl.generators.WadlGeneratorJAXBGrammarGenerator=OFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters