-
Notifications
You must be signed in to change notification settings - Fork 37
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
Documenting logging levels #4
Comments
What would be a good place to put this? README? |
Might be good for now. Later, as the project grows even more, we may need some bigger form of documentation, like some web page or something. |
LoggingIntroLogging in STARTS is a customized (read: simpler) version of java.util.logging (JUL). The code for logging is located in starts-core/src/main/java/edu/illinois/starts/util/Logger.java For any piece of starts that you'd like to add logging to, begin by adding two import statements at the top:
Next, instantiate your Logger as a class variable:
LevelsThere are 7 logging levels (excluding OFF and ALL), just like JUL:
To set the logging level of your log, use the To check the logging level, use the Writing messagesThere are two methods you can use to log that differ only in the number of arguments you pass in.
|
Hi @jayfurrie, this is an excellent start! Would you mind to (1) create a PR which adds your current documentation to a |
done! |
Concerning pull request #3, we should have some documentation of what different logging levels log.
The text was updated successfully, but these errors were encountered: