This is an automated email from the ASF dual-hosted git repository. smarru pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit 8f67c2dd18d8a1b8585a6b7b005cbced319a733d Author: Aarushi <aarushiibi...@gmail.com> AuthorDate: Tue Jun 25 09:03:05 2019 -0400 added logging --- .../src/main/resources/log4j.properties | 41 ++++++++++++++++++++++ pom.xml | 10 ++++++ 2 files changed, 51 insertions(+) diff --git a/custos-profile-service/profile-service-server/src/main/resources/log4j.properties b/custos-profile-service/profile-service-server/src/main/resources/log4j.properties new file mode 100644 index 0000000..a625c4f --- /dev/null +++ b/custos-profile-service/profile-service-server/src/main/resources/log4j.properties @@ -0,0 +1,41 @@ +# +# 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. +# + +# Set root category priority to INFO and its only appender to CONSOLE. +log4j.rootCategory=INFO, CONSOLE,LOGFILE +log4j.rootLogger=INFO, CONSOLE, LOGFILE + +# Set the enterprise logger priority to FATAL +log4j.logger.org.apache.axis2.enterprise=FATAL +log4j.logger.de.hunsicker.jalopy.io=FATAL +log4j.logger.httpclient.wire.header=FATAL +log4j.logger.org.apache.commons.httpclient=FATAL +log4j.logger.org.apache.zookeeper=FATAL + +# CONSOLE is set to be a ConsoleAppender using a PatternLayout. +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n + +# LOGFILE is set to be a File appender using a PatternLayout. +log4j.appender.LOGFILE=org.apache.log4j.FileAppender +log4j.appender.LOGFILE.File=../../bin/airavata.log +log4j.appender.LOGFILE.Append=true +log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout +log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n diff --git a/pom.xml b/pom.xml index d42d29e..7bcdf03 100644 --- a/pom.xml +++ b/pom.xml @@ -51,5 +51,15 @@ <artifactId>mariadb-java-client</artifactId> <version>2.0.2</version> </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-log4j12</artifactId> + <version>${org.slf4j.version}</version> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>${log4j.version}</version> + </dependency> </dependencies> </project> \ No newline at end of file