Пример #1
0
 public void call(ConsoleMessage message) {
   LogEntry entry =
       new LogEntry(
           OperaSeverity.get(message.getSeverity()).toLevel(),
           message.getTime(),
           message.getDescription());
   logs.addEntry(message.getSource(), entry);
 }
Пример #2
0
 public void publish(LogRecord record) {
   LogEntry entry =
       new LogEntry(record.getLevel(), System.currentTimeMillis() / 1000L, record.getMessage());
   logs.addEntry(LogType.DRIVER, entry);
 }