You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/01/03 22:09:46 UTC

[logging-log4j-tools] branch master updated: Increase Maven logging verbosity

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 64edca4  Increase Maven logging verbosity
64edca4 is described below

commit 64edca4935758f7561b345ac3405bcec08e0a156
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Tue Jan 3 23:10:40 2023 +0100

    Increase Maven logging verbosity
---
 .github/workflows/build.yml               |  1 +
 .github/workflows/simplelogger.properties | 51 +++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8d62d6c..08079fc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -171,6 +171,7 @@ jobs:
           NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
           NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
           SIGN_KEY: ${{ secrets.GPG_SECRET_KEY }}
+          MAVEN_OPTS: "-Djavax.net.debug=ssl -Djava.util.logging.config.file=.github/workflows/simplelogger.properties"
 
       - name: Create artifacts (RELEASE)
         if: startsWith(github.ref, 'refs/heads/release/')
diff --git a/.github/workflows/simplelogger.properties b/.github/workflows/simplelogger.properties
new file mode 100644
index 0000000..dd7c6f0
--- /dev/null
+++ b/.github/workflows/simplelogger.properties
@@ -0,0 +1,51 @@
+# https://support.sonatype.com/entries/23656571-Configuring-Maven-HTTP-Wagon-Detailed-Logging
+# ==========================================================================================================
+# === 1) copy this file to $M2_HOME/conf/logging/simplelogger.properties
+# === 2) MAVEN_OPTS should include reference to this file. Example:
+# ===    *nix: export MAVEN_OPTS="$MAVEN_OPTS -Djava.util.logging.config.file=$M2_HOME/conf/logging/simplelogger.properties"
+# ===    *win: set MAVEN_OPTS "%MAVEN_OPTS% -Djava.util.logging.config.file=%M2_HOME%/conf/logging/simplelogger.properties"
+# ==========================================================================================================
+
+# === Maven 2.2.1 and Maven 3.0.x section
+.level = INFO
+
+handlers=java.util.logging.ConsoleHandler
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+java.util.logging.ConsoleHandler.level = ALL
+
+# lightweight wagon - evil
+sun.net.www.level = FINEST
+
+# Maven 2.2.1 + wagon-http 2.1 + commons-httpclient 3.1 loaded via as extension dependency
+# may require slf4j-jdk14 as build extension if slf4j is also loaded via transitive extension
+httpclient.wire.header.level=FINEST
+org.apache.commons.httpclient.level=FINE
+
+# Maven 2.2.1 / 3.0.x + wagon-http 2.1 + httpclient 4x
+org.apache.http.level = FINEST
+org.apache.http.wire.level = SEVERE
+org.apache.http.impl.conn.level = FINEST
+org.apache.http.impl.client.level = FINEST
+org.apache.http.client.level = FINEST
+
+# wagon-http 2.2+ + httpclient 4x is shaded
+org.apache.maven.wagon.providers.http.httpclient.level = FINEST
+org.apache.maven.wagon.providers.http.httpclient.wire.level = SEVERE
+
+# === Maven 3.1.x+ section
+
+# http://maven.apache.org/maven-logging.html Default Overrides
+org.slf4j.simpleLogger.defaultLogLevel=trace
+org.slf4j.simpleLogger.showDateTime=true
+org.slf4j.simpleLogger.showThreadName=true
+org.slf4j.simpleLogger.showLogName=true
+org.slf4j.simpleLogger.logFile=System.out
+org.slf4j.simpleLogger.levelInBrackets=true
+org.slf4j.simpleLogger.log.Sisu=info
+org.slf4j.simpleLogger.warnLevelString=WARNING
+
+# HTTP logging overrides
+org.slf4j.simpleLogger.log.org.apache.http=DEBUG
+org.slf4j.simpleLogger.log.org.apache.http.wire=ERROR
+org.slf4j.simplelogger.log.org.apache.maven.wagon.providers.http=DEBUG
+org.slf4j.simplelogger.log.org.apache.maven.wagon.providers.http.httpclient.wire=ERROR