4546474849505152
} @Override public void addEntryTimestamped(long timestamp, Level level, String message) { if (level.intValue() >= minLogLevel.intValue()) { logEntries.add(new LogEntry(level, timestamp, message)); } }
9596979899100101102103104
public ConsoleMessageConverter(OperaLogs logs) { this.logs = logs; } public void call(ConsoleMessage message) { LogEntry entry = new LogEntry(OperaSeverity.get(message.getSeverity()).toLevel(), message.getTime(), message.getDescription()); logs.addEntry(message.getSource(), entry); }
116117118119120121122123124125
public DriverLogsHandler(OperaLogs logs) { this.logs = logs; } public void publish(LogRecord record) { LogEntry entry = new LogEntry(record.getLevel(), System.currentTimeMillis(), record.getMessage()); logs.addEntry(LogType.DRIVER, entry); }