How do I compare Logger Level severity?
Category: java.util.logging, viewed: 1098 time(s).
In this example we see how we can compare the Level severity
between two levels. The Level class has an intValue()
method that return the integer value of Level's severity.
When we run the program above will see the following result:
INFO(800) is less severe than WARNING(900) FINEST(300) is less severe than INFO(800)
Download Hundreds of Complimentary Industry Resources
Get hundreds of popular Industry magazines, white papers, webinars, podcasts, and more;
all available at no cost to you. With more than 600 complimentary offers, you'll find
plenty of titles to suit your professional interests and needs.
Click Here and Sign up today!


