Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How the logger is handled?

handled Logger
0
Posted

How the logger is handled?

0

Classes sending messages to the logger should create a static Logger object. Calling the class method Logger getLogger (String name) of the class Logger, creates a Logger object. The parameter name should be a dot-separated name and should normally be based on the package name The method void logp(Level level,String sourceClass,String sourceMethod,String msg,Throwable thrown) Log a message, specifying source class and method, with associated Throwable information. The following example shows 2 code fragments of the class TestLogger. This code fragment creates a Logger-object.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123