You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2020/04/10 19:22:51 UTC
[commons-jcs] branch jcs-122-logging-abstraction updated: Adjust
log settings
This is an automated email from the ASF dual-hosted git repository.
tv pushed a commit to branch jcs-122-logging-abstraction
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
The following commit(s) were added to refs/heads/jcs-122-logging-abstraction by this push:
new ab7fdb6 Adjust log settings
ab7fdb6 is described below
commit ab7fdb6ef4db84330c20097471a23a722ce4575c
Author: Thomas Vandahl <tv...@apache.org>
AuthorDate: Fri Apr 10 21:22:38 2020 +0200
Adjust log settings
---
commons-jcs-core/pom.xml | 6 ---
commons-jcs-core/src/test/test-conf/je.properties | 51 ----------------------
.../src/test/test-conf/log4j.properties | 44 -------------------
.../src/test/test-conf/logging.properties | 4 +-
pom.xml | 7 ---
5 files changed, 2 insertions(+), 110 deletions(-)
diff --git a/commons-jcs-core/pom.xml b/commons-jcs-core/pom.xml
index 605be7a..9026c36 100644
--- a/commons-jcs-core/pom.xml
+++ b/commons-jcs-core/pom.xml
@@ -80,12 +80,6 @@
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <scope>test</scope>
- </dependency>
-
<!-- Exclude for now -->
<!-- dependency>
<groupId>org.jgroups</groupId>
diff --git a/commons-jcs-core/src/test/test-conf/je.properties b/commons-jcs-core/src/test/test-conf/je.properties
deleted file mode 100644
index 1893cb4..0000000
--- a/commons-jcs-core/src/test/test-conf/je.properties
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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.
-# Property file for unit test usage. Usually, all
-# unit tests should run w/out a je.properties file, so
-# the test can have total control over its environment.
-# It may be useful to use a property file when debugging.
-# This file should always be checked in with all properties
-# commented out.
-# $Id$
-
-# je.env.forcedYield=false
-
-# java.util.logging.ConsoleHandler.on=true
-# java.util.logging.FileHandler.on=true
-# java.util.logging.level=INFO
-
-# je.env.runINCompressor=true
-# je.compressor.deadlockRetry=3
-# je.compressor.lockTimeout=5000
-
-# je.env.runEvictor=true
-# je.maxMemory defaults to 93% of jdb.maxMemory unless specified
-je.maxMemory=512
-# je.evictor.nodeScanPercentage=25
-# je.evictor.evictionBatchPercentage=25
-
-# je.env.runCheckpointer=true
-# je.checkpointer.deadlockRetry=3
-
-# je.verify.tree.dump=true
-# je.verify.inlist=true
-# je.verify.throw=false
-
-# je.env.runCleaner=true
-# je.cleaner.deadlockRetry=3
-# je.cleaner.lockTimeout=5000
-# je.cleaner.expunge=false
diff --git a/commons-jcs-core/src/test/test-conf/log4j.properties b/commons-jcs-core/src/test/test-conf/log4j.properties
deleted file mode 100644
index 18e947f..0000000
--- a/commons-jcs-core/src/test/test-conf/log4j.properties
+++ /dev/null
@@ -1,44 +0,0 @@
-# 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.rootCategory=INFO, stdout
-log4j.rootCategory=INFO, logfile
-
-log4j.category.org.apache.commons.jcs=INFO
-log4j.category.org.apache.commons.jcs.config=INFO
-log4j.category.org.apache.commons.jcs.engine=INFO
-log4j.category.org.apache.commons.jcs.engine.CacheEventQueueFactory=INFO
-log4j.category.org.apache.commons.jcs.auxiliary.disk.jdbc=INFO
-log4j.category.org.apache.commons.jcs.auxiliary.disk=INFO
-log4j.category.org.apache.commons.jcs.auxiliary.disk.block=INFO
-log4j.category.org.apache.commons.jcs.auxiliary.disk.file=INFO
-log4j.category.org.apache.commons.jcs.auxiliary.remote=INFO
-log4j.category.org.apache.commons.jcs.auxiliary.lateral=INFO
-log4j.category.org.apache.commons.jcs.utils.struct=INFO
-log4j.category.org.apache.commons.jcs.utils.threadpool=INFO
-log4j.category.org.apache.commons.jcs.utils.discovery=INFO
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d %p [%c{1}] - <%m>%n
-
-log4j.appender.logfile=org.apache.log4j.FileAppender
-log4j.appender.logfile.File=target/jcs.log
-log4j.appender.logfile.Append=false
-log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
-# Pattern to output : date priority [category] - <message>line_separator
-log4j.appender.logfile.layout.ConversionPattern=%d %p [%c{1}] - <%m>%n
-
diff --git a/commons-jcs-core/src/test/test-conf/logging.properties b/commons-jcs-core/src/test/test-conf/logging.properties
index c2b0fba..cecfa53 100644
--- a/commons-jcs-core/src/test/test-conf/logging.properties
+++ b/commons-jcs-core/src/test/test-conf/logging.properties
@@ -16,9 +16,9 @@
# under the License.
handlers=java.util.logging.FileHandler
-.level = FINE
+.level = INFO
-java.util.logging.FileHandler.level=FINE
+java.util.logging.FileHandler.level=INFO
java.util.logging.FileHandler.pattern=target/jcs-logging-%g.log
java.util.logging.FileHandler.limit = 100000
java.util.logging.FileHandler.count = 2
diff --git a/pom.xml b/pom.xml
index b6ee621..3a4bfa6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -352,13 +352,6 @@
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.17</version>
- <scope>test</scope>
- </dependency>
-
<!-- Exclude for now -->
<!-- dependency>
<groupId>org.jgroups</groupId>