APISonar


org.apache.log4j.lf5.util.LogMonitorAdapter.log

> org > apache > log4j > lf5 > util > LogMonitorAdapter > log
org APIs apache APIs log4j APIs lf5 APIs util APIs LogMonitorAdapter APIs log APIs

Example 1
private static LogMonitorAdapter _adapter;

  public void doMyBidding() {
    String logger = this.getClass().getName();

    // will default to debug log level
    _adapter.log(logger, "Doh this is a debugging");

    _adapter.log(logger, LogLevel.INFO, "Hmmm fobidden doughnut");
    _adapter.log(logger, LogLevel.WARN, "Danger Danger Will Robinson",
        new RuntimeException("DANGER"), "32");
    _adapter.log(logger, LogLevel.ERROR, "Exit stage right->");
    _adapter.log(logger, LogLevel.FATAL, "What's up Doc?",
        new NullPointerException("Unfortunate exception"));
  }