LOG4J Questions and Answers

Mention what are the two static methods for obtaining a logger object?

The two static methods for obtaining a logger object are

  • Public static Logger getRootLogger()
  • Public static Logger getLogger(String name)