From 00ac5a06f918ef5fd8fe5f28973eaf8bccea68f0 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Wed, 22 May 2024 21:14:40 +0200 Subject: [PATCH] improve logs: use emojis to mark the log level for easier visibility --- src/org/thoughtcrime/securesms/LogViewFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/LogViewFragment.java b/src/org/thoughtcrime/securesms/LogViewFragment.java index dedc8404e..5a54bd4d8 100644 --- a/src/org/thoughtcrime/securesms/LogViewFragment.java +++ b/src/org/thoughtcrime/securesms/LogViewFragment.java @@ -136,6 +136,10 @@ public class LogViewFragment extends Fragment { String line; while ((line = bufferedReader.readLine()) != null) { + line = line.replaceFirst(" (\\d+) E ", " $1 \uD83D\uDD34 "); + line = line.replaceFirst(" (\\d+) W ", " $1 \uD83D\uDFE0 "); + line = line.replaceFirst(" (\\d+) I ", " $1 \uD83D\uDD35 "); + line = line.replaceFirst(" (\\d+) D ", " $1 \uD83D\uDFE2 "); log.append(line); log.append(separator); }