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

Replace all System.out.prinln(...) with proper logging #16

Open
nileger opened this issue Jan 23, 2022 · 0 comments
Open

Replace all System.out.prinln(...) with proper logging #16

nileger opened this issue Jan 23, 2022 · 0 comments
Assignees

Comments

@nileger
Copy link
Member

nileger commented Jan 23, 2022

Problem

Currently, we create a lot of log output using System.out.prinln(...).
Unfortunately, we can't control whether System.out.println should be logged or not with any property (in comparison to using a proper logger).

Solution

Replace all System.out.prinln(...) with proper logging as in T2PControllerHelper.class;
Logger logger = LoggerFactory.getLogger(T2PControllerHelper.class);
logger.debug("Instantiating the WorldModelBuilder ...");
Then, by setting the log level in application.properties, we can control what is being logged.

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

4 participants