Merge remote-tracking branch 'origin/improve/logger_add_error_code' into add_scanner_component

This commit is contained in:
ろむねこ 2024-01-16 12:04:19 +09:00
commit 290795d3aa
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,8 @@ public interface LacertaLogger {
void trace(String tag, String message); void trace(String tag, String message);
void fatal(String tag, String message); void fatal(String tag, String message);
void e_code(String errorId);
String buildKVMessage(KeyValueLog... logs); String buildKVMessage(KeyValueLog... logs);
// With name // With name
String buildKVMessage(String name, KeyValueLog... logs); String buildKVMessage(String name, KeyValueLog... logs);

View File

@ -43,6 +43,11 @@ public class LacertaLoggerImpl implements LacertaLogger{
Log.wtf(tag, message); Log.wtf(tag, message);
} }
@Override
public void e_code(String errorId) {
Log.e("ErrorReport", "An error occurred. Searchable error ID: " + errorId);
}
@Override @Override
public String buildKVMessage(KeyValueLog... logs) { public String buildKVMessage(KeyValueLog... logs) {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();