Comments (8)
Maybe we could create a test that reproduces this error. Could you do it @akihyro ?
from logback-access-spring-boot-starter.
@adammichalik @fiunchinho Thanks for report.
I tried to make a test case.
When you release the following comment, an error will occur.
- https://github.com/akihyro/spring-boot-ext-logback-access/blob/f98fb3512142464180a54671902374b11bc253c9/src/test/java/net/rakugakibox/springbootext/logback/access/AbstractJsonAccessEventTest.java#L110
- https://github.com/akihyro/spring-boot-ext-logback-access/blob/f98fb3512142464180a54671902374b11bc253c9/src/test/java/net/rakugakibox/springbootext/logback/access/AbstractJsonAccessEventTest.java#L153
Maybe, when there is not HTTP response header "Content-Length",
the response length will not be logged (= -1).
Do you fit in this case? If this case, I'm going to try support!
[FYI] I was compared:
In the case of Logback-access:
- https://github.com/qos-ch/logback/blob/v_1.1.7/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java#L258
- https://github.com/qos-ch/logback/blob/v_1.1.7/logback-access/src/main/java/ch/qos/logback/access/tomcat/TomcatServerAdapter.java#L39-L42
In the case of Spring Boot (server.tomcat.accesslog.enabled=true
):
- https://github.com/spring-projects/spring-boot/blob/v1.3.3.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java#L832-L837
- https://github.com/apache/tomcat/blob/TOMCAT_8_0_0/java/org/apache/catalina/valves/AbstractAccessLogValve.java#L1129-L1151
from logback-access-spring-boot-starter.
Fixed the issue (PR: #5).
and, v1.2 has been released!
Please check the work with the v1.2.
from logback-access-spring-boot-starter.
Thanks a lot for looking into it! I'm currently away from my computer for
the next week, so I'll check the details as soon as I can.
21 kwi 2016 18:27 "Akihiro Kondo" [email protected] napisaล(a):
@adammichalik https://github.com/adammichalik @fiunchinho
https://github.com/fiunchinho Thanks for report.I tried to make a test case.
When you release the following comment, an error will occur.
https://github.com/akihyro/spring-boot-ext-logback-access/blob/f98fb3512142464180a54671902374b11bc253c9/src/test/java/net/rakugakibox/springbootext/logback/access/AbstractJsonAccessEventTest.java#L110
Maybe, when there is not HTTP response header "Content-Length",
the response length will not be logged (= -1).
Do you fit in this case? If this case, I'm going to try support!
[FYI] I was compared: In the case of Logback-access:
https://github.com/qos-ch/logback/blob/v_1.1.7/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java#L258
In the case of Spring Boot (server.tomcat.accesslog.enabled=true):
https://github.com/spring-projects/spring-boot/blob/v1.3.3.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java#L832-L837
โ
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#4 (comment)
from logback-access-spring-boot-starter.
Thanks, I tried it out and it works fine. Unfortunately, I found a new regression issue #8 which prevents me from upgrading.
from logback-access-spring-boot-starter.
Thanks a lot. The issue #8 was fixed! (PR: #10)
from logback-access-spring-boot-starter.
Works fine in 1.3, thanks!
from logback-access-spring-boot-starter.
Thanks a lot for checking!
from logback-access-spring-boot-starter.
Related Issues (20)
- java.lang.NoSuchMethodError: 'java.util.SortedMap kotlin.collections.MapsKt.sortedMapOf(java.util.Comparator, kotlin.Pair[])' HOT 6
- config file not loading when configured in application.properties HOT 4
- Micrometer Tracing Support for Access Logs HOT 6
- support slf4j (log4j2) HOT 3
- java.lang.NoSuchMethodError: 'java.util.SortedMap kotlin.collections.MapsKt.sortedMapOf(java.util.Comparator, kotlin.Pair[])' HOT 4
- Invalid characters in HTTP requests can cause NullPointerException in the access logs HOT 2
- Support Spring Boot 3 HOT 9
- The request body is being printed out only if the content type is set to application/x-www-form-urlencoded. Not otherwise.
- Hashing remote user HOT 1
- JSON Access log Logging HOT 2
- Jetty 12 Compatibility (Spring Boot 3.2.x) HOT 2
- support async appenders
- Support logback-access v2.0.0
- maybe make `spring-boot-starter-web` optional dependency HOT 2
- spring boot 2.2.2.RELEASE not work HOT 5
- Actuator on different port not logging HOT 2
- Add support for Undertow reactive web server
- Starter does not configure Tomcat when a servletContainer bean is configured
- Spring Boot Embedded Tomcat NullPointerException get-serverName HOT 3
- Options for working around LOGBACK-1526 in 3.x version of this lib HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logback-access-spring-boot-starter.