import org.gfc.logging.Logger;
import org.gfc.logging.LoggerFactory;
public class MyApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(MyApplication.class);
public static void main(String[] args) {
LOGGER.info("This is an information log message.");
LOGGER.warn("This is a warning log message.");
try {
// Code that may throw an exception
} catch (Exception e) {
LOGGER.error("An error occurred.", e);
}
}
}
properties
# GFC Logging Configuration
logger.level = DEBUG
logger.output = console