Skip to content

Logging

papousek edited this page Apr 21, 2012 · 2 revisions

This extension configures logging (log4j and slf4j) to work properly.

Configuration

  • configFile - path to the configuration file for log4j (defaultly set to the file in core module)
  • level - the minimal level of message to display (DEBUG|INFO|WARN|ERROR|FATAL)

Logging in Java Class

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class MyClass {
    private static final Logger LOGGER = LoggerFactory.getLogger(MyClass.class);

    public MyClass() {
        LOGGER.info("created");
    }
}