-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can not find logs in console using spring boot app, I have just installed logbook-spring-boot-starter
and add logging.level.org.zalando.logbook.Logbook=TRACE
to my common.properties file
#768
Comments
Can you prepare a sample project on GitHub to showcase this?
…On Thu, 18 Jun 2020, 22:38 Doaa Alkhateib, ***@***.***> wrote:
Description
When I Installed the maven dependency and the logbook level tp TRACE, When
I hit any endpoint in the application
Expected Behavior
I am expecting the request and the response to be logged in the console
Actual Behavior
I got nothing log in the console
Possible Fix Steps to Reproduce
1.
2.
3.
4.
Context Your Environment
- Version used:
- Link to your project:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#768>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADI7HJUS35MC3US6PHTQ7DRXJ3KZANCNFSM4OCEFN6A>
.
|
@whiskeysierra yes I will prepare a sample application and share it, but as a clarification could you please confirm the following:
|
Correct.
Logbook makes no hard requirement about the logging framework or how you configure it. I haven't used Spring's logging configuration personally yet, but that looks good to me.
Whether something is logged to the console or a file depends on your logging framework and your configuration. I can't tell, really. Logbook's responsibility ends at the SLF4J level. Logbook's contract is as follows: It uses the
Confirmed.
See points above. The configuration of your logging framework is out of scope for Logbook.
Your setup sounds good to me. It should work. The only thing I can offer is to take a look at an example. Once we get your example working, I'd be more than happy to incorporate it into logbook for future users. |
@Doaa82 Feel free to create a sample project or a test to verify the behavior that you see. I'm more than happy to reopen this, if needed, but for the time being I don't think there is anything to do here. |
Description
When I Installed the maven dependency and the logbook level tp TRACE, When I hit any endpoint in the application
Expected Behavior
I am expecting the request and the response to be logged in the console
Actual Behavior
I got nothing log in the console
Possible Fix
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: