From 20f6333dcc053d0ee6f891b181cdffeb0716be8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 16 Jan 2024 12:03:33 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BCID=E3=82=92=E3=83=AD?= =?UTF-8?q?=E3=82=B0=E3=81=AB=E6=B5=81=E3=81=99=E3=83=A1=E3=82=BD=E3=83=83?= =?UTF-8?q?=E3=83=89=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java | 2 ++ .../java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java b/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java index 64076771..15bbf2c9 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java +++ b/utils/src/main/java/one/nem/lacerta/utils/LacertaLogger.java @@ -11,6 +11,8 @@ public interface LacertaLogger { void trace(String tag, String message); void fatal(String tag, String message); + void e_code(String errorId); + String buildKVMessage(KeyValueLog... logs); // With name String buildKVMessage(String name, KeyValueLog... logs); diff --git a/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java b/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java index d2b35dd2..48b81cd8 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java +++ b/utils/src/main/java/one/nem/lacerta/utils/impl/LacertaLoggerImpl.java @@ -43,6 +43,11 @@ public class LacertaLoggerImpl implements LacertaLogger{ Log.wtf(tag, message); } + @Override + public void e_code(String errorId) { + Log.e("ErrorReport", "An error occurred. Searchable error ID: " + errorId); + } + @Override public String buildKVMessage(KeyValueLog... logs) { StringBuilder builder = new StringBuilder();