diff options
author | Luciano Resende <lresende@apache.org> | 2017-01-16 12:36:07 -0800 |
---|---|---|
committer | Luciano Resende <lresende@apache.org> | 2017-01-16 12:36:07 -0800 |
commit | 917c0243a18b770526acecf4c36eb7b483aafe8b (patch) | |
tree | 81d1ac36761c8e8201f586e1d934e71594bc57ba /src | |
parent | bf017f191be768c265f0de57b9336fa52a342ce5 (diff) | |
download | toree-gateway-917c0243a18b770526acecf4c36eb7b483aafe8b.tar.gz toree-gateway-917c0243a18b770526acecf4c36eb7b483aafe8b.tar.bz2 toree-gateway-917c0243a18b770526acecf4c36eb7b483aafe8b.zip |
Add Apache License header files
Diffstat (limited to 'src')
-rw-r--r-- | src/main/resources/log4j.properties | 32 | ||||
-rw-r--r-- | src/main/scala/com/ibm/ToreeClient.scala | 17 |
2 files changed, 49 insertions, 0 deletions
diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties new file mode 100644 index 0000000..36cf436 --- /dev/null +++ b/src/main/resources/log4j.properties @@ -0,0 +1,32 @@ +# +# (C) Copyright IBM Corp. 2017 +# +# 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. +# + +# Root logger option +log4j.rootLogger=ALL, file, stdout + +# Direct log messages to a log file +log4j.appender.file=org.apache.log4j.RollingFileAppender +log4j.appender.file.File=/opt/toree_proxy/logs/toree-proxy-client.log +log4j.appender.file.MaxFileSize=10MB +log4j.appender.file.MaxBackupIndex=10 +log4j.appender.file.layout=org.apache.log4j.PatternLayout +log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n + +# Direct log messages to stdout +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.Target=System.out +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
\ No newline at end of file diff --git a/src/main/scala/com/ibm/ToreeClient.scala b/src/main/scala/com/ibm/ToreeClient.scala index b9e58b0..d3714d6 100644 --- a/src/main/scala/com/ibm/ToreeClient.scala +++ b/src/main/scala/com/ibm/ToreeClient.scala @@ -1,3 +1,20 @@ +/* + * (C) Copyright IBM Corp. 2017 + * + * 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. + * + */ + package com.ibm |