Huong Dan Java Logger – Part 9 – Do logging

Which logging log level will depend on the configuration of the user when they use Huong Dan Java Logger and more importantly whether the logging level is enabled in the Logging Framework configuration file? Therefore, we need to write a new method to test these conditions.

I write as follows:

In the absence of logging level set, we need to display a warning message to inform the user.

And now we can use this new method to log the message out:

 

Đánh giá bài viết
Chia sẽ bài viết này ...Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment