Comments (4)
you can do that with only one step:
rename your file reflection-config.json
to reflect-config.json
and place it inside src/main/resources/META-INF/native-image/<group id>/<artifact id>
it will be picked up automatically.
It you are using Spring, you can also use ReflectionHints
instead.
My point here is that this reflection config could be added directly to the logbook lib then no extra (external) configuration is required.
from logbook.
In my case I was able to solve the problem in a Spring Boot application adding the following content into the file: src/main/resources/META-INF/native-image/org.zalando/logbook/reflect-config.json
:
[
{
"name" : "org.zalando.logbook.json.JsonHttpLogFormatter$JsonBody",
"allPublicMethods" : true
}
]
Thanks @itineric for the tip.
from logbook.
@itineric, thanks for the tip. I updated the answer. My goal was to help those who are facing same problem, while the solution is not added directly to the logbook.
from logbook.
Looks like a nice addition to logbook. @itineric would you be interested in contributing to the library to add the necessary changes?
from logbook.
Related Issues (20)
- logbook-ktor-server removes Content-Type header from response HOT 9
- Obfuscate json body fields using json path or json pointer HOT 1
- Logbook not read logback configuration from logback-spring.xml HOT 2
- Logs only show header's name but not value if header is added using a Filter in Spring Boot HOT 2
- Micronaut 4 integration based on @ClientFilter & @ServerFilter
- UnsupportedOperationException in LogbookHttpRequestInterceptor with Spring Boot 3.2.0 and Apache Http Client 5 HOT 6
- No traceId for SpringCloudGateway request in SpringBoot 3.2.0 HOT 3
- Make Logbook interceptors fault tolerant HOT 3
- Do not mention issues with "not-a-bug" label in release notes HOT 4
- Logbook 3.7.0 pulls in Lombok as transitive dependency HOT 9
- Spring Boot 3 + Micrometer Tracing: Context empty in Server request/response logs HOT 6
- Logbook 3.7.1 pulls in a whole bunch of test dependencies to the production classpath HOT 5
- Eliminate superfluous filter execution HOT 1
- Does setting the log level to debug enable log output? HOT 1
- UnsupportedOperationException: null when using logbook-httpclient (4.0) HOT 1
- mark/reset not supported after adding LogbookClientHttpRequestInterceptor with TRACE logging level HOT 1
- Allow automatic context propagation when using Spring Webflux
- Possible OOM with large servlet response HOT 6
- RESTEASY003765: Response is closed HOT 4
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 logbook.