You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sa...@apache.org on 2017/01/31 23:24:23 UTC

ambari git commit: AMBARI-19763: Workflow Manager View : Separate log file into its own directory similar to other views (sangeetar)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 7ee253841 -> 3bb3fdff7


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/3bb3fdff
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3bb3fdff
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3bb3fdff

Branch: refs/heads/branch-2.5
Commit: 3bb3fdff77c083c5f2dec8b76c7356c717eb2b7b
Parents: 7ee2538
Author: Sangeeta Ravindran <sa...@apache.org>
Authored: Tue Jan 31 15:24:04 2017 -0800
Committer: Sangeeta Ravindran <sa...@apache.org>
Committed: Tue Jan 31 15:24:04 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/3bb3fdff/contrib/views/wfmanager/pom.xml
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/pom.xml b/contrib/views/wfmanager/pom.xml
index 8016d7b..06fbfeb 100644
--- a/contrib/views/wfmanager/pom.xml
+++ b/contrib/views/wfmanager/pom.xml
@@ -294,6 +294,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/3bb3fdff/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..f784cb4
--- /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.oozie.ambari.view= false
+log4j.additivity.org.apache.ambari.view.workflowmanager= false