Code example for LogRecord

Methods: getLevel, getLoggerName, getMessage

0
        sLoglevelMap.put(Level.SEVERE, Log.ERROR); 
    } 
 
    @Override 
    public void publish(LogRecord record) { 
        Integer level = sLoglevelMap.get(record.getLevel()); 
        if (level == null) { 
            level = Log.VERBOSE; 
        } 
        Log.println(level, record.getLoggerName(), record.getMessage()); 
    } 
 
    @Override 
    public void close() { 
    } 
 
    @Override 
    public void flush() { 
    } 
 
}