Repository: ambari Updated Branches: refs/heads/branch-dev-patch-upgrade 393ab3ee2 -> d222f572e
AMBARI-19763: Workflow Manager View : Separate log file into its own directory similar to other views (sangeetar) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cc42c95d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cc42c95d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cc42c95d Branch: refs/heads/branch-dev-patch-upgrade Commit: cc42c95db84ecb115393a0dec5390245f377d7d6 Parents: a8b8b41 Author: Sangeeta Ravindran <[email protected]> Authored: Tue Jan 31 15:33:07 2017 -0800 Committer: Sangeeta Ravindran <[email protected]> Committed: Tue Jan 31 15:33:07 2017 -0800 ---------------------------------------------------------------------- contrib/views/wfmanager/pom.xml | 1 + .../src/main/resources/view.log4j.properties | 29 ++++++++++++++++++++ 2 files changed, 30 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/cc42c95d/contrib/views/wfmanager/pom.xml ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/pom.xml b/contrib/views/wfmanager/pom.xml index fff793c..2585e13 100644 --- a/contrib/views/wfmanager/pom.xml +++ b/contrib/views/wfmanager/pom.xml @@ -276,6 +276,7 @@ <includes> <include>META-INF/**/*</include> <include>view.xml</include> + <include>view.log4j.properties</include> </includes> </resource> <resource> http://git-wip-us.apache.org/repos/asf/ambari/blob/cc42c95d/contrib/views/wfmanager/src/main/resources/view.log4j.properties ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/src/main/resources/view.log4j.properties b/contrib/views/wfmanager/src/main/resources/view.log4j.properties new file mode 100644 index 0000000..83612a1 --- /dev/null +++ b/contrib/views/wfmanager/src/main/resources/view.log4j.properties @@ -0,0 +1,29 @@ +# Copyright 2011 The Apache Software Foundation +# +# 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.appender.wfmanagerview=org.apache.log4j.RollingFileAppender +log4j.appender.wfmanagerview.File=${ambari.log.dir}/wfmanager-view/wfmanager-view.log +log4j.appender.wfmanagerview.MaxFileSize=80MB +log4j.appender.wfmanagerview.MaxBackupIndex=60 +log4j.appender.wfmanagerview.layout=org.apache.log4j.PatternLayout +log4j.appender.wfmanagerview.layout.ConversionPattern=%d{DATE} %5p [%t] [%X{viewName} %X{viewVersion} %X{viewInstanceName}] %c{1}:%L - %m%n + +log4j.logger.org.apache.oozie.ambari.view=INFO,wfmanagerview +log4j.logger.org.apache.ambari.view.workflowmanager=INFO,wfmanagerview +log4j.additivity.org.apache.ambari.view.workflowmanager= false +log4j.additivity.org.apache.oozie.ambari.view= false \ No newline at end of file
