D | ShadowLog.java | 21 private static final Map<String, Queue<LogItem>> logsByTag = Collections.synchronizedMap(new 22 HashMap<String, Queue<LogItem>>()); 23 private static final Queue<LogItem> logs = new ConcurrentLinkedQueue<>(); 141 LogItem item = new LogItem(level, tag, msg, throwable); in addLog() 142 Queue<LogItem> itemList; in addLog() 180 public static List<LogItem> getLogs() { in getLogs() 190 public static List<LogItem> getLogsForTag(String tag) { in getLogsForTag() 191 Queue<LogItem> logs = logsByTag.get(tag); in getLogsForTag() 237 public static class LogItem { class in ShadowLog 243 public LogItem(int type, String tag, String msg, Throwable throwable) { in LogItem() method in ShadowLog.LogItem [all …]
|