Comments (2)
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.
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)
- 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 3
- support async appenders
- Support logback-access v2.0.0 HOT 1
- Have different starters for jetty and tomcat HOT 1
- bug: `springProperty` no longer works in 4.2.2 HOT 1
- can't start application with spring boot 3.3.2 (logback-access-spring-boot-starter 4.2.2) HOT 1
- Undertow logging failing due to UT000005: getRequestChannel() has already been called
- 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.