Java Util Logging

  • Introduced in JDK 1.4
  • A minimal built-in logging implementation

Sample code

import java.util.logging.*;
Logger logger = Logger.getLogger("name")
logger.info("A message with param {0} and {1}", new Object[]{a, b});

Drawbacks

  • Lack of flexibility of configuration
  • Bad performance
  • Has important limitations
  • Cannot be replaced by another library
  • See Why not use java.util.logging?

Redirection

results matching ""

    No results matching ""