Git Product home page Git Product logo

Comments (2)

akkinoc avatar akkinoc commented on September 21, 2024

Sorry for the late reply.

It worked well on my machine.
I wrote the following source code.

https://github.com/akihyro/try-spring-boot-ext-logback-access-issue22

When starting this application,
the following log was output to the console (logback.xml).

{"@timestamp":"2017-01-04T18:07:57.952+09:00","data_version":1,"description":"Starting Application on akihyro with PID 9738 (/home/akihyro/try-spring-boot-ext-logback-access-issue22/target/classes started by akihyro in /home/akihyro/try-spring-boot-ext-logback-access-issue22)","logger_name":"net.rakugakibox.springbootext.logback.access.issue22.Application","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.springframework.boot.StartupInfoLogger","caller_method_name":"logStarting","caller_file_name":"StartupInfoLogger.java","caller_line_number":48}
{"@timestamp":"2017-01-04T18:07:58.024+09:00","data_version":1,"description":"No active profile set, falling back to default profiles: default","logger_name":"net.rakugakibox.springbootext.logback.access.issue22.Application","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.springframework.boot.SpringApplication","caller_method_name":"logStartupProfileInfo","caller_file_name":"SpringApplication.java","caller_line_number":666}
{"@timestamp":"2017-01-04T18:07:58.176+09:00","data_version":1,"description":"Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@48e9ba0c: startup date [Wed Jan 04 18:07:58 JST 2017]; root of context hierarchy","logger_name":"org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.springframework.context.support.AbstractApplicationContext","caller_method_name":"prepareRefresh","caller_file_name":"AbstractApplicationContext.java","caller_line_number":578}
{"@timestamp":"2017-01-04T18:07:58.700+09:00","data_version":1,"description":"HV000001: Hibernate Validator 5.2.4.Final","logger_name":"org.hibernate.validator.internal.util.Version","thread_name":"background-preinit","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.hibernate.validator.internal.util.Version","caller_method_name":"<clinit>","caller_file_name":"Version.java","caller_line_number":30}
{"@timestamp":"2017-01-04T18:08:00.364+09:00","data_version":1,"description":"Tomcat initialized with port(s): 8080 (http)","logger_name":"org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer","caller_method_name":"initialize","caller_file_name":"TomcatEmbeddedServletContainer.java","caller_line_number":81}
{"@timestamp":"2017-01-04T18:08:00.392+09:00","data_version":1,"description":"Starting service Tomcat","logger_name":"org.apache.catalina.core.StandardService","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.apache.juli.logging.DirectJDKLog","caller_method_name":"log","caller_file_name":"DirectJDKLog.java","caller_line_number":180}
{"@timestamp":"2017-01-04T18:08:00.395+09:00","data_version":1,"description":"Starting Servlet Engine: Apache Tomcat/8.0.33","logger_name":"org.apache.catalina.core.StandardEngine","thread_name":"main","level":"INFO","level_value":20000,"HOSTNAME":"akihyro","application":"helloWorld","caller_class_name":"org.apache.juli.logging.DirectJDKLog","caller_method_name":"log","caller_file_name":"DirectJDKLog.java","caller_line_number":180}
...

Also, when accessing /index.html,
the following log was output to the console (logback-access.xml).

{"@timestamp":"2017-01-04T18:10:57.833+09:00","@version":1,"@message":"10.0.2.2 - - [2017-01-04T18:10:57.833+09:00] \"GET /index.html HTTP/1.1\" 200 179","@fields.method":"GET","@fields.protocol":"HTTP/1.1","@fields.status_code":200,"@fields.requested_url":"GET /index.html HTTP/1.1","@fields.requested_uri":"/index.html","@fields.remote_host":"10.0.2.2","@fields.HOSTNAME":"10.0.2.2","@fields.content_length":179,"@fields.elapsed_time":22,"@fields.request_headers":{"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8","accept-encoding":"gzip, deflate, sdch, br","accept-language":"ja,en-US;q=0.8,en;q=0.6","cache-control":"no-cache","connection":"keep-alive","cookie":"Idea-72d4eeaf=54899052-bbf9-4d48-9e0f-12d62825c066","host":"localhost:8080","pragma":"no-cache","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"},"@fields.response_headers":{"Accept-Ranges":"bytes","Last-Modified":"Wed, 04 Jan 2017 08:21:37 GMT","Content-Length":"179","Date":"Wed, 04 Jan 2017 09:10:57 GMT","Content-Type":"text/html;charset=UTF-8"},"HOSTNAME":"akihyro","appname":"myWebservice"}

from logback-access-spring-boot-starter.

akkinoc avatar akkinoc commented on September 21, 2024

This issue is inactive, so I close it.
If you still have problems, please open a new issue.

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.