Git Product home page Git Product logo

Comments (8)

fiunchinho avatar fiunchinho commented on June 1, 2024

Maybe we could create a test that reproduces this error. Could you do it @akihyro ?

from logback-access-spring-boot-starter.

akkinoc avatar akkinoc commented on June 1, 2024

@adammichalik @fiunchinho Thanks for report.

I tried to make a test case.
When you release the following comment, an error will occur.

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:
In the case of Spring Boot (server.tomcat.accesslog.enabled=true):

from logback-access-spring-boot-starter.

akkinoc avatar akkinoc commented on June 1, 2024

Fixed the issue (PR: #5).

and, v1.2 has been released!
Please check the work with the v1.2.

http://search.maven.org/#artifactdetails%7Cnet.rakugakibox.springbootext%7Cspring-boot-ext-logback-access%7C1.2%7C

from logback-access-spring-boot-starter.

adammichalik avatar adammichalik commented on June 1, 2024

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

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

โ€”
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.

adammichalik avatar adammichalik commented on June 1, 2024

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.

akkinoc avatar akkinoc commented on June 1, 2024

Thanks a lot. The issue #8 was fixed! (PR: #10)

from logback-access-spring-boot-starter.

adammichalik avatar adammichalik commented on June 1, 2024

Works fine in 1.3, thanks!

from logback-access-spring-boot-starter.

akkinoc avatar akkinoc commented on June 1, 2024

Thanks a lot for checking!

from logback-access-spring-boot-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.