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);
Public static logger getRootLogger();
Public static logger getLogger(String name);