Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: logging via slf4j #20

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Conversation

olenagerasimova
Copy link
Member

Changed logging to slf4j logger. Now logs from maven build are the following:

[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.pom (1.3 kB at 520 B/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/args4j/args4j-site/2.33/args4j-site-2.33.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j-site/2.33/args4j-site-2.33.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j-site/2.33/args4j-site-2.33.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/args4j/args4j-site/2.33/args4j-site-2.33.pom (4.4 kB at 7.4 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/kohsuke/pom/14/pom-14.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/kohsuke/pom/14/pom-14.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/kohsuke/pom/14/pom-14.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/kohsuke/pom/14/pom-14.pom (5.5 kB at 11 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.pom (2.4 kB at 3.7 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.pom (2.0 kB at 4.0 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.pom (2.0 kB at 3.2 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.pom (1.8 kB at 4.4 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.pom (3.8 kB at 9.7 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.pom
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.pom.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.pom (3.4 kB at 11 kB/s)
[INFO] HTTP/3+QUIC support is experimental and not suited for production use.
Downloading from my-maven: https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/args4j/args4j/2.33/args4j-2.33.jar (155 kB at 259 kB/s)
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.jar
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.jar
Downloading from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.jar
Downloading from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-jcl/6.1.0/spring-jcl-6.1.0.jar (25 kB at 18 kB/s)
Downloading from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-observation/1.12.0/micrometer-observation-1.12.0.jar (72 kB at 14 kB/s)
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.jar
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-core/6.1.0/spring-core-6.1.0.jar (1.9 MB at 349 kB/s)
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/io/micrometer/micrometer-commons/1.12.0/micrometer-commons-1.12.0.jar (47 kB at 8.5 kB/s)
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-beans/6.1.0/spring-beans-6.1.0.jar (873 kB at 114 kB/s)
[INFO] HTTP/3.0 request done, method=GET, resp status=200, url=https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar.sha1
Downloaded from my-maven: https://artipie:8091/my-maven-proxy/org/springframework/spring-web/6.1.0/spring-web-6.1.0.jar (1.9 MB at 239 kB/s)
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ maven-http3 ---
[INFO] skip non existing resourceDirectory /w/src/main/resources
[INFO] 
[INFO] --- compiler:3.11.0:compile (default-compile) @ maven-http3 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ maven-http3 ---
[INFO] skip non existing resourceDirectory /w/src/test/resources
[INFO] 
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ maven-http3 ---
[INFO] No sources to compile
[INFO] 
[INFO] --- surefire:3.1.2:test (default-test) @ maven-http3 ---
[INFO] No tests to run.
[INFO] 
[INFO] --- jar:3.3.0:jar (default-jar) @ maven-http3 ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /w/target/maven-http3-0.1.jar
[INFO] 
[INFO] --- install:3.1.1:install (default-install) @ maven-http3 ---
[INFO] Installing /w/pom.xml to /root/.m2/repository/com/example/maven-http3/0.1/maven-http3-0.1.pom
[INFO] Installing /w/target/maven-http3-0.1.jar to /root/.m2/repository/com/example/maven-http3/0.1/maven-http3-0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.494 s
[INFO] Finished at: 2023-12-13T06:58:40Z
[INFO] ------------------------------------------------------------------------

@olenagerasimova
Copy link
Member Author

@dgarus please, take a look, let's discuss what to improve

@olenagerasimova
Copy link
Member Author

@dgarus done, all the logs from plugin are visible in debug level only

Copy link
Contributor

@dgarus dgarus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dgarus dgarus merged commit 96396b7 into artipie:master Dec 13, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants