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

Logging to stdout mostly stops after some period (1-2 days?) #105

Open
bbockelm opened this issue Jun 13, 2023 · 4 comments
Open

Logging to stdout mostly stops after some period (1-2 days?) #105

bbockelm opened this issue Jun 13, 2023 · 4 comments
Assignees

Comments

@bbockelm
Copy link
Contributor

I have a test issuer which is run at trace-level logging and is logging to stdout. This is preferred for me as the stdout is forwarded to kubectl logs.

However, after some amount of time (unclear if it is time-based or size-based; perhaps after some log rotation is triggered?), the flow to stdout stops. This is the only message:

OA4MP command line client state stored on Mon Jun 12 20:04:24 UTC 2023

Is it possible to keep the logs flowing?

@jjg-123
Copy link
Contributor

jjg-123 commented Jun 23, 2023

This seems to describe the problem: https://stackoverflow.com/questions/6314285/java-util-logging-stops-working-after-a-while

TL;DR -- The logger itself may get garbage collected after being unused for a period of time. Solution is to ensure a gratuitous strong reference to it.

@bbockelm
Copy link
Contributor Author

@jjg-123 - was this ever resolved?

@bbockelm
Copy link
Contributor Author

Just as a FYI -- after upgrading to 5.4.1, I still see logs stop working after about a day.

@jbasney
Copy link
Member

jbasney commented Dec 13, 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

3 participants