mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
修正
This commit is contained in:
parent
2b79c7669f
commit
48101190a2
|
@ -11,7 +11,7 @@ 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);
|
||||||
|
|
||||||
String buildMessageByObject(KeyValueLog... logs);
|
String buildKVMessage(KeyValueLog... logs);
|
||||||
// With name
|
// With name
|
||||||
String buildMessageByObject(String name, KeyValueLog... logs);
|
String buildKVMessage(String name, KeyValueLog... logs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class LacertaLoggerImpl implements LacertaLogger{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String buildMessageByObject(KeyValueLog... logs) {
|
public String buildKVMessage(KeyValueLog... logs) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
for (KeyValueLog log : logs) {
|
for (KeyValueLog log : logs) {
|
||||||
builder.append(log.getKey());
|
builder.append(log.getKey());
|
||||||
|
@ -56,7 +56,7 @@ public class LacertaLoggerImpl implements LacertaLogger{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String buildMessageByObject(String name, KeyValueLog... logs) {
|
public String buildKVMessage(String name, KeyValueLog... logs) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append(name);
|
builder.append(name);
|
||||||
builder.append("\n");
|
builder.append("\n");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user