From 22b4c6a027d72ec90dc91d150bee007cb8167eed Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Tue, 23 Jun 2015 15:03:33 -0700 Subject: Add Validation logging. Persist the last 20 lines of validation info for the last 10 networks. bug: 21599856 Change-Id: I8124480cc9181eea2adb7eb6eabcd07c9506b6d3 --- core/java/android/util/LocalLog.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'core/java/android/util') diff --git a/core/java/android/util/LocalLog.java b/core/java/android/util/LocalLog.java index cab5d19..4862f01 100644 --- a/core/java/android/util/LocalLog.java +++ b/core/java/android/util/LocalLog.java @@ -54,4 +54,18 @@ public final class LocalLog { pw.println(itr.next()); } } + + public static class ReadOnlyLocalLog { + private final LocalLog mLog; + ReadOnlyLocalLog(LocalLog log) { + mLog = log; + } + public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { + mLog.dump(fd, pw, args); + } + } + + public ReadOnlyLocalLog readOnlyLocalLog() { + return new ReadOnlyLocalLog(this); + } } -- cgit v1.1