-
Notifications
You must be signed in to change notification settings - Fork 175
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
Logger program keeps running #111
Comments
Hi @Dwapayan, which version of the Java logging library are you using? |
@shakeelmohamed This is happening with both 1.6.2 and 1.7.1 with JDK 11.0.2 |
Can you try adding |
@shakeelmohamed Unfortunately LogManager.shutdown() itself will not work in all scenarios. |
Please let us know if you continue to see this behavior in version 1.7.2. Thanks! |
This problem is not solved yet. I tried the 1.7.2 and got the same issue. When 1.7.2 library is added just the declaration causes program to keep running private static Logger LOGGER = LogManager.getLogger(LoggerTest.class); |
After we run the following the program does not exit:
private static Logger LOGGER = LogManager.getLogger(LoggerTest.class); -> Declared in class scope
LOGGER.info("This is a new string message - info"); -> run from main function
Is some thread still running causing the program to get stuck in execution. The message in the line is sent to splunk but then program does not exit.
Are there ant methods to dispose logger ?
The text was updated successfully, but these errors were encountered: