Add method to log error without throwable
Add Ln.e(message) in addition to Ln.e(message, error).
@@ -52,7 +52,13 @@ public final class Ln {
if (isEnabled(Level.ERROR)) {
Log.e(TAG, message, throwable);
System.out.println("ERROR: " + message);
+ if (throwable != null) {
throwable.printStackTrace();
}
}
}
+
+ public static void e(String message) {
+ e(message, null);
+ }
+}
