Skip to content
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

How to get all logging? #1482

Closed
SinOverCos opened this issue Oct 6, 2023 · 4 comments
Closed

How to get all logging? #1482

SinOverCos opened this issue Oct 6, 2023 · 4 comments

Comments

@SinOverCos
Copy link

SinOverCos commented Oct 6, 2023

I modified logging.properties to be this:

.level = ALL

handlers=java.util.logging.ConsoleHandler,java.util.logging.FileHandler

java.util.logging.SimpleFormatter.format=[%4$-7s] %2$s - %5$s %6$s %n

java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

java.util.logging.FileHandler.level = ALL
java.util.logging.FileHandler.pattern = /tmp/worker.log
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter

If I add a log.finest() in BuildfarmConfigs.java, I can see the log line:

[FINEST ] build.buildfarm.common.config.BuildfarmConfigs lambda$checkExecutionWrapperAvailability$0 - finest

But when I add a log.finest() call to worker/Executor.java, I can't see the log line showing up anywhere, even though the println I have before and after the log.finest() do show up in the console.

Am I not seeing a logging override somewhere?

Here's a PR demonstrating the problem: #1484

@SinOverCos
Copy link
Author

Also, it seems like the default logging.properties referenced in the README ends up outputting no log lines to the console despite it being set to FINE.

@SinOverCos
Copy link
Author

Updated with PR demonstrating the problem: #1484

@werkt
Copy link
Collaborator

werkt commented Oct 7, 2023

One likely fix for this is incoming - springboot causes a lot of issues with logging, and I am removing it with an observed ability to specify FINEST with the example supplied in the readme

@werkt
Copy link
Collaborator

werkt commented Oct 9, 2023

#1495 Should have addressed this for console logging of JUL configs. Please rebase and verify.

@werkt werkt closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants