mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
log entries are multi-lined
This commit is contained in:
parent
e3d4cca9d0
commit
858d7ab22b
@ -83,10 +83,10 @@ public final class Logger extends java.util.logging.Logger {
|
||||
f.setFormatter(new Formatter() {
|
||||
@Override
|
||||
public String format(LogRecord record) {
|
||||
return (new Date(record.getMillis())).toString() + " : "
|
||||
+ record.getLevel() + ": "
|
||||
return (new Date(record.getMillis())).toString() + " "
|
||||
+ record.getSourceClassName() + " "
|
||||
+ record.getSourceMethodName() + ": "
|
||||
+ record.getSourceMethodName() + "\n"
|
||||
+ record.getLevel() + ": "
|
||||
+ this.formatMessage(record) + "\n";
|
||||
}
|
||||
});
|
||||
@ -103,21 +103,20 @@ public final class Logger extends java.util.logging.Logger {
|
||||
StackTrace += "\t" + ele1.toString() + "\n";
|
||||
}
|
||||
|
||||
return (new Timestamp(record.getMillis())).toString() + " : "
|
||||
+ record.getLevel() + ": "
|
||||
return (new Timestamp(record.getMillis())).toString() + " "
|
||||
+ record.getSourceClassName() + " "
|
||||
+ record.getSourceMethodName() + ": "
|
||||
+ this.formatMessage(record) + " "
|
||||
+ record.getSourceMethodName() + "\n"
|
||||
+ record.getLevel() + ": "
|
||||
+ this.formatMessage(record) + "\n"
|
||||
+ record.getThrown().toString() + ": "
|
||||
+ StackTrace
|
||||
+ "\n";
|
||||
} else {
|
||||
return (new Timestamp(record.getMillis())).toString() + " : "
|
||||
+ record.getLevel() + ": "
|
||||
return (new Timestamp(record.getMillis())).toString() + " "
|
||||
+ record.getSourceClassName() + " "
|
||||
+ record.getSourceMethodName() + ": "
|
||||
+ this.formatMessage(record) + " "
|
||||
+ "\n";
|
||||
+ record.getSourceMethodName() + "\n"
|
||||
+ record.getLevel() + ": "
|
||||
+ this.formatMessage(record) + "\n";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user