Code example for Logger

Methods: log

0
        LOG = Logger.getLogger(name);
        LOG.setLevel(Level.ALL);
    } 
 
    public void log(Level level, String msg){
        LOG.log(level, formatter(msg));
    } 
 
    public void log(Level level, String msg, Object param1){
        LOG.log(level, formatter(msg), param1);
    } 
 
    public void log(Level level, String msg, Object[] params){
        LOG.log(level, formatter(msg), params);
    } 
 
    private String formatter(String msg){
        return Thread.currentThread().getName() + ":" + msg;
    } 
 
}