mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
エラーIDをログに流すメソッドを実装
This commit is contained in:
parent
5837a1a2d3
commit
20f6333dcc
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user