New dynamic locale system.

- Fixes #7619
This commit is contained in:
Alan Evans
2019-03-25 17:23:38 -03:00
parent 6a0a419f0c
commit a7aa980e58
12 changed files with 370 additions and 44 deletions

View File

@@ -119,6 +119,13 @@ public class Log {
}
}
public static String tag(Class<?> clazz) {
String simpleName = clazz.getSimpleName();
if (simpleName.length() > 23) {
return simpleName.substring(0, 23);
}
return simpleName;
}
public static abstract class Logger {
public abstract void v(String tag, String message, Throwable t);