import org.gfclc.logging.Logger;
import org.gfclc.logging.LoggerFactory;
public class ExampleClass{
private static final Logger LOGGER = LoggerFactory.getLogger(ExampleClass.class);
public void doSomething(){
LOGGER.debug("This is a debug message");
LOGGER.info("This is an info message");
LOGGER.warn("This is a warning message");
LOGGER.error("This is an error message");
}
}
properties
log.file.path=/var/log/application.log
log.level=DEBUG
log.format=[%d] %p %m %n