mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-05 18:01:56 +02:00
24 lines
416 B
Java
24 lines
416 B
Java
package io.eiren.util.logging;
|
|
|
|
import java.util.List;
|
|
|
|
import io.eiren.util.collections.FastList;
|
|
import io.eiren.util.logging.DefaultGLog.LogEntry;
|
|
|
|
|
|
public class LoggerRecorder {
|
|
|
|
private final List<LogEntry> recorded = new FastList<LogEntry>();
|
|
|
|
public LoggerRecorder() {
|
|
}
|
|
|
|
public synchronized void addEntry(LogEntry e) {
|
|
recorded.add(e);
|
|
}
|
|
|
|
public List<LogEntry> getEntries() {
|
|
return recorded;
|
|
}
|
|
}
|