mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 08:56:15 +00:00
Merge pull request #2823 from wschaeferB/2645-LogReadabilityImprovement
2645 made message type the first element in logs
This commit is contained in:
commit
13adfc07ef
@ -438,7 +438,7 @@ final class AutoIngestJobLogger {
|
|||||||
if (null != lock) {
|
if (null != lock) {
|
||||||
File logFile = logPath.toFile();
|
File logFile = logPath.toFile();
|
||||||
try (PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(logFile, logFile.exists())), true)) {
|
try (PrintWriter writer = new PrintWriter(new BufferedWriter(new FileWriter(logFile, logFile.exists())), true)) {
|
||||||
writer.println(String.format("%s %s: %s: %s: %-8s: %s", logDateFormat.format((Date.from(Instant.now()).getTime())), hostName, manifestFileName, dataSourceFileName, category.toString(), message));
|
writer.println(String.format("%-8s: %s %s: %s: %s: %s", category.toString(), logDateFormat.format((Date.from(Instant.now()).getTime())), hostName, manifestFileName, dataSourceFileName, message));
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
throw new AutoIngestJobLoggerException(String.format("Failed to write case auto ingest log message (\"%s\") for %s", message, manifestPath), ex);
|
throw new AutoIngestJobLoggerException(String.format("Failed to write case auto ingest log message (\"%s\") for %s", message, manifestPath), ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user