package com.mycompany.example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SLF4j {
/** debug logger reference. */
private static Logger logger = LoggerFactory.getLogger(SLF4j.class);
public void hello(String name){
logger.error("Hello {}!", name);
logger.warn ("Hello {}!", name);
logger.info ("Hello {}!", name);
logger.debug("Hello {}!", name);
logger.trace("Hello {}!", name);
}
public static void main(String[] args){
SLF4j slf4j = new SLF4j();
slf4j.hello("World");
}
}