You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gr...@apache.org on 2023/12/17 22:23:23 UTC

(logging-chainsaw) branch master updated (0051118 -> bfab61a)

This is an automated email from the ASF dual-hosted git repository.

grobmeier pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git


    from 0051118  Merge branch 'master' of github.com:apache/logging-chainsaw
     new 19056e9  added missing licenses
     new 9994899  fixed logging, removed unused variable
     new bfab61a  removed unused class

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../chainsaw/ChainsawCyclicBufferTableModel.java   |  6 +--
 .../components/logpanel/AutoFilterComboBox.java    | 16 ++++++++
 .../logpanel/ColumnNameKeywordMapper.java          | 16 ++++++++
 .../components/logpanel/ElementFactory.java        | 16 ++++++++
 .../chainsaw/components/splash/SplashViewer.java   | 16 ++++++++
 .../chainsaw/logui/LogUiKeyStrokeCreator.java      | 16 ++++++++
 .../log4j/chainsaw/logui/LogUiReceiversPanel.java  | 16 ++++++++
 .../log4j/chainsaw/version/VersionManager.java     | 43 ----------------------
 8 files changed, 98 insertions(+), 47 deletions(-)
 delete mode 100644 src/main/java/org/apache/log4j/chainsaw/version/VersionManager.java


(logging-chainsaw) 03/03: removed unused class

Posted by gr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

grobmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git

commit bfab61a42049c48b2d048d5a6da56c92ad15e03d
Author: Christian Grobmeier <cg...@grobmeier.de>
AuthorDate: Sun Dec 17 23:23:16 2023 +0100

    removed unused class
---
 .../log4j/chainsaw/version/VersionManager.java     | 43 ----------------------
 1 file changed, 43 deletions(-)

diff --git a/src/main/java/org/apache/log4j/chainsaw/version/VersionManager.java b/src/main/java/org/apache/log4j/chainsaw/version/VersionManager.java
deleted file mode 100644
index c81813f..0000000
--- a/src/main/java/org/apache/log4j/chainsaw/version/VersionManager.java
+++ /dev/null
@@ -1,43 +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.
- */
-package org.apache.log4j.chainsaw.version;
-
-
-/**
- * @author psmith
- */
-public class VersionManager {
-
-    private static final VersionManager instance = new VersionManager();
-
-    private static final String VERSION_INFO = "1.99.99 (02 March 2006)";
-
-    public static final VersionManager getInstance() {
-        return instance;
-    }
-
-    public String getVersionNumber() {
-        return VERSION_INFO;
-    }
-
-    /**
-     *
-     */
-    private VersionManager() {
-    }
-
-}


(logging-chainsaw) 01/03: added missing licenses

Posted by gr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

grobmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git

commit 19056e96b8790d3405109f75b5a0860164ff2596
Author: Christian Grobmeier <cg...@grobmeier.de>
AuthorDate: Sun Dec 17 23:18:16 2023 +0100

    added missing licenses
---
 .../chainsaw/components/logpanel/AutoFilterComboBox.java | 16 ++++++++++++++++
 .../components/logpanel/ColumnNameKeywordMapper.java     | 16 ++++++++++++++++
 .../chainsaw/components/logpanel/ElementFactory.java     | 16 ++++++++++++++++
 .../log4j/chainsaw/components/splash/SplashViewer.java   | 16 ++++++++++++++++
 .../log4j/chainsaw/logui/LogUiKeyStrokeCreator.java      | 16 ++++++++++++++++
 .../apache/log4j/chainsaw/logui/LogUiReceiversPanel.java | 16 ++++++++++++++++
 6 files changed, 96 insertions(+)

diff --git a/src/main/java/org/apache/log4j/chainsaw/components/logpanel/AutoFilterComboBox.java b/src/main/java/org/apache/log4j/chainsaw/components/logpanel/AutoFilterComboBox.java
index 0414c3a..5e5d5b6 100644
--- a/src/main/java/org/apache/log4j/chainsaw/components/logpanel/AutoFilterComboBox.java
+++ b/src/main/java/org/apache/log4j/chainsaw/components/logpanel/AutoFilterComboBox.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.log4j.chainsaw.components.logpanel;
 
 import javax.swing.*;
diff --git a/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ColumnNameKeywordMapper.java b/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ColumnNameKeywordMapper.java
index 141cbdd..1bf341f 100644
--- a/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ColumnNameKeywordMapper.java
+++ b/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ColumnNameKeywordMapper.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.log4j.chainsaw.components.logpanel;
 
 import org.apache.log4j.chainsaw.ChainsawConstants;
diff --git a/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ElementFactory.java b/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ElementFactory.java
index b7ab57d..9c19e5a 100644
--- a/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ElementFactory.java
+++ b/src/main/java/org/apache/log4j/chainsaw/components/logpanel/ElementFactory.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.log4j.chainsaw.components.logpanel;
 
 import org.apache.log4j.chainsaw.components.elements.SmallButton;
diff --git a/src/main/java/org/apache/log4j/chainsaw/components/splash/SplashViewer.java b/src/main/java/org/apache/log4j/chainsaw/components/splash/SplashViewer.java
index 477e375..36fd4f4 100644
--- a/src/main/java/org/apache/log4j/chainsaw/components/splash/SplashViewer.java
+++ b/src/main/java/org/apache/log4j/chainsaw/components/splash/SplashViewer.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.log4j.chainsaw.components.splash;
 
 import org.apache.log4j.chainsaw.helper.SwingHelper;
diff --git a/src/main/java/org/apache/log4j/chainsaw/logui/LogUiKeyStrokeCreator.java b/src/main/java/org/apache/log4j/chainsaw/logui/LogUiKeyStrokeCreator.java
index 57003fd..efc979e 100644
--- a/src/main/java/org/apache/log4j/chainsaw/logui/LogUiKeyStrokeCreator.java
+++ b/src/main/java/org/apache/log4j/chainsaw/logui/LogUiKeyStrokeCreator.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.log4j.chainsaw.logui;
 
 import org.apache.log4j.chainsaw.components.tabbedpane.ChainsawTabbedPane;
diff --git a/src/main/java/org/apache/log4j/chainsaw/logui/LogUiReceiversPanel.java b/src/main/java/org/apache/log4j/chainsaw/logui/LogUiReceiversPanel.java
index 0b9c3c0..8696caf 100644
--- a/src/main/java/org/apache/log4j/chainsaw/logui/LogUiReceiversPanel.java
+++ b/src/main/java/org/apache/log4j/chainsaw/logui/LogUiReceiversPanel.java
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
 package org.apache.log4j.chainsaw.logui;
 
 import org.apache.commons.configuration2.AbstractConfiguration;


(logging-chainsaw) 02/03: fixed logging, removed unused variable

Posted by gr...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

grobmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-chainsaw.git

commit 9994899da5a37f5be8da402ebd4d0f4a6479da08
Author: Christian Grobmeier <cg...@grobmeier.de>
AuthorDate: Sun Dec 17 23:20:21 2023 +0100

    fixed logging, removed unused variable
---
 .../org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java   | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java b/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
index b725f12..62cd9ff 100644
--- a/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
+++ b/src/main/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java
@@ -352,7 +352,7 @@ public class ChainsawCyclicBufferTableModel extends AbstractTableModel
 
     @Override
     public void sortColumn(int col, boolean ascending) {
-        logger.debug("request to sort col=" + col);
+        logger.debug("request to sort col={}", col);
         currentSortAscending = ascending;
         currentSortColumn = col;
         sortEnabled = true;
@@ -856,7 +856,7 @@ public class ChainsawCyclicBufferTableModel extends AbstractTableModel
                                 monitor.setMillisToDecideToPopup(250);
                                 monitor.setMillisToPopup(100);
                                 logger.debug(
-                                    "Changing Model, isCyclic is now " + cyclic);
+                                    "Changing Model, isCyclic is now {}", cyclic);
 
                                 List newUnfilteredList;
                                 List newFilteredList;
@@ -869,8 +869,6 @@ public class ChainsawCyclicBufferTableModel extends AbstractTableModel
                                     newFilteredList = new ArrayList(cyclicBufferSize);
                                 }
 
-                                int increment = 0;
-
                                 for (Object anUnfilteredList : unfilteredList) {
                                     LoggingEventWrapper loggingEventWrapper = (LoggingEventWrapper) anUnfilteredList;
                                     newUnfilteredList.add(loggingEventWrapper);