busarobi / XMLC

Probabilistic Label Tree for Extreme Classification
GNU General Public License v3.0
24 stars 4 forks source link

Add proper logging framework #5

Closed kiudee closed 8 years ago

kiudee commented 8 years ago

Currently we use System.out.println() calls to output general information, warnings and debug code.

In order to offer more control over the output we should switch to a logging framework like Simple Logging Facade for Java (SLF4J).

Using it will be as simple as System.out.println():

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class HelloWorld {
  public static void main(String[] args) {
    Logger logger = LoggerFactory.getLogger(HelloWorld.class);
    logger.info("Hello World");
  }
}