Use of different types of Logger

Solution Unverified - Updated -

Issue

  • What is the difference between using java.util.logging.Logger and log4j Logger?
  • What happens if I have some classes that uses log4j Logger and other classes that uses java.util.logging.Logger? Do they read the same logging configuration from standalone.xml ?
  • What is the best practice of using Logger? Which one to use?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.