APISonar


org.apache.log4j.Category.log

> org > apache > log4j > Category > log
org APIs apache APIs log4j APIs Category APIs log APIs

Example 1
static Category cat = Category.getInstance(SyslogMin.class.getName());

  void test() {
    int i  = 0;
    cat.debug( "Message " + i++);
    cat.info( "Message " + i++);
    cat.warn( "Message " + i++);
    cat.error( "Message " + i++);
    cat.log(Priority.FATAL, "Message " + i++);
    cat.debug("Message " + i++,  new Exception("Just testing."));
  }