Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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

Answer / Anurag Khare

In Apache Log4j, you can obtain a Logger instance using either of these two static methods: (1) Logger.getLogger(String name): Returns the logger associated with the specified name; and (2) Logger.getRootLogger(): Returns the root logger, which is the top-level logger in your application.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Log4j Interview Questions

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

1 Answers  


what does WARN and TRACE level indicates in log4j?

1 Answers  


Inside logger component what are the different log levels?

1 Answers  


Explain why to use Apache Log4j?

1 Answers  


what is the difference between Threshold and LevelRangeFilter in log4j?

1 Answers  


Explain whether a log output format can be customized?

1 Answers  


Explain whether log4j is a thread safe?

1 Answers  


what are the logging methods provided by logger class?

1 Answers  


what is the command to write your logging information into a file?

1 Answers  


In log4j how can you log into the database?

1 Answers  


what is the best way to migrate from java.util logging to log4j?

1 Answers  


what does .class mean in log4j context?

1 Answers  


Categories