Class Category

java.lang.Object
org.apache.log4j.Category
Direct Known Subclasses:
Logger

public class Category extends Object

This class is a minimal implementation of the original org.apache.log4j.Category class (as found in log4j 1.2) by delegation of all calls to a Logger instance.

Log4j's trace, debug(), info(), warn(), error() printing methods are directly mapped to their SLF4J equivalents. Log4j's fatal() printing method is mapped to SLF4J's error() method with a FATAL marker.

  • Field Details

    • CATEGORY_FQCN

      private static final String CATEGORY_FQCN
    • name

      private String name
    • slf4jLogger

      protected Logger slf4jLogger
    • locationAwareLogger

      private LocationAwareLogger locationAwareLogger
    • FATAL_MARKER

      private static Marker FATAL_MARKER
  • Constructor Details

    • Category

      Category(String name)
  • Method Details