LOG4J Questions and Answers

Mention what are the logging methods provided by logger class?

Logger class provides a variety of methods to handle logging activities.  To obtain a logger object it provides two static methods

  • Public static logger getRootLogger();
  • Public static logger getLogger(String name);