Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

live debug log viewer in app (#1535)

CJ Paise526733f0984
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index dfbc27dd..05bc0af4 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -34,7 +34,7 @@ use managers::transcription::TranscriptionManager;
use signal_hook::consts::{SIGUSR1, SIGUSR2};
#[cfg(unix)]
use signal_hook::iterator::Signals;
-use std::sync::atomic::{AtomicU8, Ordering};
+use std::sync::atomic::{AtomicBool, AtomicU8, Ordering};
use std::sync::Arc;
use tauri::image::Image;
pub use transcription_coordinator::TranscriptionCoordinator;
@@ -50,6 +50,14 @@ use crate::settings::get_settings;
// We use u8 to store the log::LevelFilter as a number
pub static FILE_LOG_LEVEL: AtomicU8 = AtomicU8::new(log::LevelFilter::Debug as u8);
+/// When `true`, log records are also forwarded to the webview via the
+/// `log://log` event for the debug panel's live log viewer. Gated on debug
+/// mode — the live log viewer is its only consumer and only exists in debug
+/// mode — so normal runs never broadcast log records (which can include file
+/// paths or transcribed text) onto the frontend event bus. Synced at startup
+/// and whenever debug mode is toggled (see `shortcut::change_debug_mode_setting`).
+pub static WEBVIEW_LOG_STREAMING: AtomicBool = AtomicBool::new(false);
+
fn level_filter_from_u8(value: u8) -> log::LevelFilter {
match value {
0 => log::LevelFilter::Off,
@@ -470,6 +478,15 @@ pub fn run(cli_args: CliArgs) {
let file_level = FILE_LOG_LEVEL.load(Ordering::Relaxed);
metadata.level() <= level_filter_from_u8(file_level)
}),
+ // Stream logs to the webview (via the `log://log` event) so the
+ // debug panel's live log viewer can show them in real time. Only
+ // active while debug mode is on (its sole consumer), and shares the
+ // file log level so the "Log Level" setting controls verbosity.
+ Target::new(TargetKind::Webview).filter(|metadata| {
+ WEBVIEW_LOG_STREAMING.load(Ordering::Relaxed)
+ && metadata.level()
+ <= level_filter_from_u8(FILE_LOG_LEVEL.load(Ordering::Relaxed))
+ }),
])
.build(),
);
@@ -537,6 +554,10 @@ pub fn run(cli_args: CliArgs) {
let file_log_level: log::Level = tauri_log_level.into();
// Store the file log level in the atomic for the filter to use
FILE_LOG_LEVEL.store(file_log_level.to_level_filter() as u8, Ordering::Relaxed);
+ // Only forward logs to the webview while debug mode is on (the live log
+ // viewer is the sole consumer and only exists in debug mode). This also
+ // honors the runtime `--debug` override applied to `settings` above.
+ WEBVIEW_LOG_STREAMING.store(settings.debug_mode, Ordering::Relaxed);
let app_handle = app.handle().clone();
app.manage(TranscriptionCoordinator::new(app_handle.clone()));
diff --git a/src-tauri/src/shortcut/mod.rs b/src-tauri/src/shortcut/mod.rs
index 79e0766e..7e47929a 100644
--- a/src-tauri/src/shortcut/mod.rs
+++ b/src-tauri/src/shortcut/mod.rs
@@ -563,6 +563,10 @@ pub fn change_debug_mode_setting(app: AppHandle, enabled: bool) -> Result<(), St
settings.debug_mode = enabled;
settings::write_settings(&app, settings);
+ // Keep webview log streaming in sync: the live log viewer only exists in
+ // debug mode, so logs are forwarded to the frontend only while it is on.
+ crate::WEBVIEW_LOG_STREAMING.store(enabled, std::sync::atomic::Ordering::Relaxed);
+
// Emit event to notify frontend of debug mode change
let _ = app.emit(
"settings-changed",
diff --git a/src/App.css b/src/App.css
index 2aed759b..d8168d66 100644
--- a/src/App.css
+++ b/src/App.css
@@ -38,6 +38,11 @@
transparent 70%
);
+ /* Log console surface — a subtle shade off the app background so the live log
+ viewer reads as a distinct console. In light mode this is a faint gray code
+ block (matching other surfaces); the dark theme overrides it below. */
+ --color-log-surface: color-mix(in srgb, var(--color-background), black 6%);
+
/* Apply colors */
color: var(--color-text);
background-color: var(--color-background);
@@ -59,6 +64,8 @@
--color-background: #2c2b29;
--color-logo-primary: #f28cbb;
--color-logo-stroke: #fad1ed;
+ /* Just a bit darker than the (already dark) background, keeping its warm tint */
+ --color-log-surface: color-mix(in srgb, var(--color-background), black 15%);
}
}
diff --git a/src/components/settings/debug/DebugSettings.tsx b/src/components/settings/debug/DebugSettings.tsx
index 442febfd..3710f9fa 100644
--- a/src/components/settings/debug/DebugSettings.tsx
+++ b/src/components/settings/debug/DebugSettings.tsx
@@ -2,6 +2,7 @@ import React from "react";
import { useTranslation } from "react-i18next";
import { WordCorrectionThreshold } from "./WordCorrectionThreshold";
import { LogLevelSelector } from "./LogLevelSelector";
+import { LiveLogViewer } from "./LiveLogViewer";
import { PasteDelay } from "./PasteDelay";
import { RecordingBuffer } from "./RecordingBuffer";
import { SettingsGroup } from "../../ui/SettingsGroup";
@@ -27,6 +28,7 @@ export const DebugSettings: React.FC = () => {
<RecordingBuffer descriptionMode="tooltip" grouped={true} />
<AlwaysOnMicrophone descriptionMode="tooltip" grouped={true} />
<ClamshellMicrophoneSelector descriptionMode="tooltip" grouped={true} />
+ <LiveLogViewer descriptionMode="tooltip" grouped={true} />
</SettingsGroup>
</div>
);
diff --git a/src/components/settings/debug/LiveLogViewer.tsx b/src/components/settings/debug/LiveLogViewer.tsx
new file mode 100644
index 00000000..5ce2f41f
--- /dev/null
+++ b/src/components/settings/debug/LiveLogViewer.tsx
@@ -0,0 +1,260 @@
+import React, { useCallback, useEffect, useRef, useState } from "react";
+import { useTranslation } from "react-i18next";
+import { listen } from "@tauri-apps/api/event";
+import { SettingContainer } from "../../ui/SettingContainer";
+import { Button } from "../../ui/Button";
+
+// Maximum number of lines kept in memory / rendered at once.
+const MAX_LINES = 1000;
+// Incoming logs are buffered and flushed on this cadence so a burst of log
+// activity can never trigger a render per line.
+const FLUSH_INTERVAL_MS = 250;
+
+// Payload emitted by tauri-plugin-log's `Webview` target on the `log://log`
+// event. `level` is the numeric LogLevel repr: Trace=1, Debug=2, Info=3,
+// Warn=4, Error=5. `message` is the raw log message (no timestamp/target).
+interface LogEventPayload {
+ message: string;
+ level: number;
+}
+
+interface LogLine {
+ id: number;
+ level: number;
+ time: string;
+ message: string;
+}
+
+// Level accents carry a light-theme color plus a brighter `dark:` variant, so
+// they read on both the light code-block surface and the dark console surface.
+const LEVEL_META: Record<
+ number,
+ { tag: string; tagClass: string; msgClass: string }
+> = {
+ 1: {
+ tag: "TRACE",
+ tagClass: "text-mid-gray",
+ msgClass: "text-mid-gray",
+ },
+ 2: {
+ tag: "DEBUG",
+ tagClass: "text-sky-600 dark:text-sky-400",
+ msgClass: "text-text/80",
+ },
+ 3: {
+ tag: "INFO",
+ tagClass: "text-emerald-600 dark:text-emerald-400",
+ msgClass: "text-text",
+ },
+ 4: {
+ tag: "WARN",
+ tagClass: "text-amber-600 dark:text-amber-400",
+ msgClass: "text-amber-700 dark:text-amber-300",
+ },
+ 5: {
+ tag: "ERROR",
+ tagClass: "text-red-600 dark:text-red-400",
+ msgClass: "text-red-700 dark:text-red-300",
+ },
+};
+
+const UNKNOWN_META = {
+ tag: "LOG",
+ tagClass: "text-mid-gray",
+ msgClass: "text-text",
+};
+
+const metaFor = (level: number) => LEVEL_META[level] ?? UNKNOWN_META;
+
+const formatTime = (date: Date): string => {
+ const pad = (n: number) => String(n).padStart(2, "0");
+ return `${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(
+ date.getSeconds(),
+ )}`;
+};
+
+interface LiveLogViewerProps {
+ descriptionMode?: "tooltip" | "inline";
+ grouped?: boolean;
+}
+
+export const LiveLogViewer: React.FC<LiveLogViewerProps> = ({
+ descriptionMode = "tooltip",
+ grouped = false,
+}) => {
+ const { t } = useTranslation();
+ const [logs, setLogs] = useState<LogLine[]>([]);
+ const [paused, setPaused] = useState(false);
+ const [copied, setCopied] = useState(false);
+
+ const pendingRef = useRef<LogLine[]>([]);
+ const idRef = useRef(0);
+ const pausedRef = useRef(false);
+ const pinnedRef = useRef(true);
+ const scrollRef = useRef<HTMLDivElement>(null);
+
+ useEffect(() => {
+ pausedRef.current = paused;
+ }, [paused]);
+
+ // Subscribe to the backend log stream. Lines land in a ref buffer rather than
+ // state so high log volume never overwhelms React.
+ useEffect(() => {
+ const unlisten = listen<LogEventPayload>("log://log", (event) => {
+ const line: LogLine = {
+ id: idRef.current++,
+ level: event.payload.level,
+ time: formatTime(new Date()),
+ message: event.payload.message,
+ };
+ const pending = pendingRef.current;
+ pending.push(line);
+ if (pending.length > MAX_LINES) {
+ pending.splice(0, pending.length - MAX_LINES);
+ }
+ });
+
+ return () => {
+ unlisten.then((fn) => fn());
+ };
+ }, []);
+
+ // Flush buffered lines into state on a fixed cadence to cap re-renders.
+ useEffect(() => {
+ const interval = setInterval(() => {
+ if (pausedRef.current || pendingRef.current.length === 0) return;
+ const incoming = pendingRef.current;
+ pendingRef.current = [];
+ setLogs((prev) => {
+ const next = prev.concat(incoming);
+ return next.length > MAX_LINES
+ ? next.slice(next.length - MAX_LINES)
+ : next;
+ });
+ }, FLUSH_INTERVAL_MS);
+
+ return () => clearInterval(interval);
+ }, []);
+
+ // Keep the view pinned to the latest line unless the user has scrolled up.
+ useEffect(() => {
+ if (pinnedRef.current && scrollRef.current) {
+ scrollRef.current.scrollTop = scrollRef.current.scrollHeight;
+ }
+ }, [logs]);
+
+ const handleScroll = useCallback(() => {
+ const el = scrollRef.current;
+ if (!el) return;
+ const distanceFromBottom = el.scrollHeight - el.scrollTop - el.clientHeight;
+ pinnedRef.current = distanceFromBottom < 24;
+ }, []);
+
+ const handleClear = useCallback(() => {
+ pendingRef.current = [];
+ setLogs([]);
+ pinnedRef.current = true;
+ }, []);
+
+ const handleCopy = useCallback(async () => {
+ const text = logs
+ .map((l) => `${l.time} ${metaFor(l.level).tag} ${l.message}`)
+ .join("\n");
+ try {
+ await navigator.clipboard.writeText(text);
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ } catch (error) {
+ console.error("Failed to copy logs:", error);
+ }
+ }, [logs]);
+
+ return (
+ <SettingContainer
+ title={t("settings.debug.liveLogs.title")}
+ description={t("settings.debug.liveLogs.description")}
+ descriptionMode={descriptionMode}
+ grouped={grouped}
+ layout="stacked"
+ >
+ <div className="flex items-center justify-between mb-2 gap-2">
+ <div className="flex items-center gap-2 text-xs text-mid-gray min-w-0">
+ <span
+ className={`inline-block w-2 h-2 rounded-full shrink-0 ${
+ paused ? "bg-mid-gray" : "bg-emerald-500 animate-pulse"
+ }`}
+ />
+ <span className="shrink-0">
+ {paused
+ ? t("settings.debug.liveLogs.paused")
+ : t("settings.debug.liveLogs.live")}
+ </span>
+ <span className="shrink-0">·</span>
+ <span className="truncate">
+ {t("settings.debug.liveLogs.lineCount", { count: logs.length })}
+ </span>
+ </div>
+ <div className="flex items-center gap-2 shrink-0">
+ <Button
+ variant="secondary"
+ size="sm"
+ onClick={() => setPaused((p) => !p)}
+ >
+ {paused
+ ? t("settings.debug.liveLogs.resume")
+ : t("settings.debug.liveLogs.pause")}
+ </Button>
+ <Button
+ variant="secondary"
+ size="sm"
+ onClick={handleCopy}
+ disabled={logs.length === 0}
+ >
+ {copied ? t("settings.debug.liveLogs.copied") : t("common.copy")}
+ </Button>
+ <Button
+ variant="secondary"
+ size="sm"
+ onClick={handleClear}
+ disabled={logs.length === 0}
+ >
+ {t("common.clear")}
+ </Button>
+ </div>
+ </div>
+
+ <div
+ ref={scrollRef}
+ onScroll={handleScroll}
+ className="h-72 overflow-y-auto rounded-lg border border-mid-gray/30 bg-[var(--color-log-surface)] p-3 font-mono text-xs leading-relaxed select-text"
+ >
+ {logs.length === 0 ? (
+ <div className="text-mid-gray select-none">
+ {t("settings.debug.liveLogs.empty")}
+ </div>
+ ) : (
+ logs.map((line) => {
+ const meta = metaFor(line.level);
+ return (
+ <div key={line.id} className="flex gap-2">
+ <span className="text-mid-gray/80 shrink-0 select-none tabular-nums">
+ {line.time}
+ </span>
+ <span
+ className={`${meta.tagClass} shrink-0 select-none w-[3.5rem]`}
+ >
+ {meta.tag}
+ </span>
+ <span
+ className={`${meta.msgClass} min-w-0 whitespace-pre-wrap break-words`}
+ >
+ {line.message}
+ </span>
+ </div>
+ );
+ })
+ )}
+ </div>
+ </SettingContainer>
+ );
+};
diff --git a/src/components/ui/Dropdown.tsx b/src/components/ui/Dropdown.tsx
index 509c08c3..0276621b 100644
--- a/src/components/ui/Dropdown.tsx
+++ b/src/components/ui/Dropdown.tsx
@@ -104,7 +104,9 @@ export const Dropdown: React.FC<DropdownProps> = ({
onClick={() => handleSelect(option.value)}
disabled={option.disabled}
>
- <span className="whitespace-normal break-words">{option.label}</span>
+ <span className="whitespace-normal break-words">
+ {option.label}
+ </span>
</button>
))
)}
diff --git a/src/i18n/locales/ar/translation.json b/src/i18n/locales/ar/translation.json
index 81f7a14e..59e8c962 100644
--- a/src/i18n/locales/ar/translation.json
+++ b/src/i18n/locales/ar/translation.json
@@ -421,6 +421,17 @@
"title": "مستوى السجل",
"description": "ضبط درجة تفصيل السجلات"
},
+ "liveLogs": {
+ "title": "السجلات المباشرة",
+ "description": "اعرض سجلات التطبيق في الوقت الفعلي لتشخيص المشكلات دون فتح ملف السجل. تُعرض فقط السجلات الصادرة أثناء فتح هذه اللوحة، وتراعي إعداد «مستوى السجل» أعلاه.",
+ "live": "مباشر",
+ "paused": "متوقف مؤقتًا",
+ "pause": "إيقاف مؤقت",
+ "resume": "استئناف",
+ "copied": "تم النسخ",
+ "lineCount": "{{count}} سطر",
+ "empty": "بانتظار السجلات… ستظهر الإدخالات هنا فور إصدار التطبيق لها."
+ },
"updateChecks": {
"label": "التحقق من وجود تحديثات",
"description": "التحقق تلقائياً من وجود إصدارات جديدة من Handy"
@@ -569,6 +580,8 @@
"update": "تحديث",
"close": "إغلاق",
"open": "فتح",
+ "copy": "نسخ",
+ "clear": "مسح",
"default": "افتراضي",
"enabled": "ممكن",
"disabled": "معطل",
diff --git a/src/i18n/locales/bg/translation.json b/src/i18n/locales/bg/translation.json
index 2cb5d79d..4df0a2ed 100644
--- a/src/i18n/locales/bg/translation.json
+++ b/src/i18n/locales/bg/translation.json
@@ -443,6 +443,17 @@
"title": "Ниво на логване",
"description": "Задаване на подробността на логовете"
},
+ "liveLogs": {
+ "title": "Логове на живо",
+ "description": "Преглеждайте логовете на приложението в реално време, за да диагностицирате проблеми, без да отваряте лог файла. Показват се само логове, създадени докато този панел е отворен; спазва настройката «Ниво на логване» по-горе.",
+ "live": "На живо",
+ "paused": "На пауза",
+ "pause": "Пауза",
+ "resume": "Възобновяване",
+ "copied": "Копирано",
+ "lineCount": "Редове: {{count}}",
+ "empty": "Изчакване на логове… Записите ще се появят тук, щом приложението ги генерира."
+ },
"updateChecks": {
"label": "Проверка за актуализации",
"description": "Автоматична проверка за нови версии на Handy"
@@ -569,6 +580,8 @@
"update": "Обновяване",
"close": "Затваряне",
"open": "Отваряне",
+ "copy": "Копиране",
+ "clear": "Изчистване",
"default": "По подразбиране",
"enabled": "Включено",
"disabled": "Изключено",
diff --git a/src/i18n/locales/cs/translation.json b/src/i18n/locales/cs/translation.json
index aa93251c..7a3feb5a 100644
--- a/src/i18n/locales/cs/translation.json
+++ b/src/i18n/locales/cs/translation.json
@@ -443,6 +443,17 @@
"title": "Úroveň logování",
"description": "Nastavte úroveň podrobnosti logování"
},
+ "liveLogs": {
+ "title": "Živé logy",
+ "description": "Sledujte logy aplikace v reálném čase a diagnostikujte problémy bez otevírání souboru logu. Zobrazují se pouze logy vytvořené, když je tento panel otevřený; respektuje nastavení Úroveň logování výše.",
+ "live": "Živě",
+ "paused": "Pozastaveno",
+ "pause": "Pozastavit",
+ "resume": "Pokračovat",
+ "copied": "Zkopírováno",
+ "lineCount": "Řádků: {{count}}",
+ "empty": "Čekání na logy… Záznamy se zde zobrazí, jakmile je aplikace vygeneruje."
+ },
"updateChecks": {
"label": "Kontrolovat aktualizace",
"description": "Automaticky kontrolovat nové verze Handy"
@@ -569,6 +580,8 @@
"update": "Aktualizovat",
"close": "Zavřít",
"open": "Otevřít",
+ "copy": "Kopírovat",
+ "clear": "Vymazat",
"default": "Výchozí",
"enabled": "Zapnuto",
"disabled": "Vypnuto",
diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.json
index c031bea6..a3a63f62 100644
--- a/src/i18n/locales/de/translation.json
+++ b/src/i18n/locales/de/translation.json
@@ -443,6 +443,17 @@
"title": "Log-Level",
"description": "Ausführlichkeit der Protokollierung festlegen"
},
+ "liveLogs": {
+ "title": "Live-Logs",
+ "description": "Anwendungs-Logs in Echtzeit anzeigen, um Probleme zu diagnostizieren, ohne die Log-Datei zu öffnen. Es werden nur Logs angezeigt, die ausgegeben werden, während dieses Feld geöffnet ist; berücksichtigt die obige Log-Level-Einstellung.",
+ "live": "Live",
+ "paused": "Pausiert",
+ "pause": "Pausieren",
+ "resume": "Fortsetzen",
+ "copied": "Kopiert",
+ "lineCount": "{{count}} Zeilen",
+ "empty": "Warte auf Logs … Einträge erscheinen hier, sobald die App sie ausgibt."
+ },
"updateChecks": {
"label": "Nach Updates suchen",
"description": "Automatisch nach neuen Versionen von Handy suchen"
@@ -569,6 +580,8 @@
"update": "Aktualisieren",
"close": "Schließen",
"open": "Öffnen",
+ "copy": "Kopieren",
+ "clear": "Leeren",
"default": "Standard",
"enabled": "Aktiviert",
"disabled": "Deaktiviert",
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json
index eef96e5b..36c8cc72 100644
--- a/src/i18n/locales/en/translation.json
+++ b/src/i18n/locales/en/translation.json
@@ -443,6 +443,17 @@
"title": "Log Level",
"description": "Set the verbosity of logging"
},
+ "liveLogs": {
+ "title": "Live Logs",
+ "description": "Stream application logs in real time to diagnose issues without opening the log file. Only logs emitted while this panel is open are shown; respects the Log Level setting above.",
+ "live": "Live",
+ "paused": "Paused",
+ "pause": "Pause",
+ "resume": "Resume",
+ "copied": "Copied",
+ "lineCount": "{{count}} lines",
+ "empty": "Waiting for logs… Entries appear here as the app emits them."
+ },
"updateChecks": {
"label": "Check for Updates",
"description": "Automatically check for new versions of Handy"
@@ -569,6 +580,8 @@
"update": "Update",
"close": "Close",
"open": "Open",
+ "copy": "Copy",
+ "clear": "Clear",
"default": "Default",
"enabled": "Enabled",
"disabled": "Disabled",
diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.json
index e33d5cb4..bde8c4e8 100644
--- a/src/i18n/locales/es/translation.json
+++ b/src/i18n/locales/es/translation.json
@@ -443,6 +443,17 @@
"title": "Nivel de Registro",
"description": "Establece el nivel de detalle del registro"
},
+ "liveLogs": {
+ "title": "Registros en Vivo",
+ "description": "Transmite los registros de la aplicación en tiempo real para diagnosticar problemas sin abrir el archivo de registro. Solo se muestran los registros emitidos mientras este panel está abierto; respeta el ajuste de Nivel de Registro de arriba.",
+ "live": "En Vivo",
+ "paused": "En Pausa",
+ "pause": "Pausar",
+ "resume": "Reanudar",
+ "copied": "Copiado",
+ "lineCount": "{{count}} líneas",
+ "empty": "Esperando registros… Las entradas aparecerán aquí a medida que la aplicación las emita."
+ },
"updateChecks": {
"label": "Buscar Actualizaciones",
"description": "Buscar automáticamente nuevas versiones de Handy"
@@ -569,6 +580,8 @@
"update": "Actualizar",
"close": "Cerrar",
"open": "Abrir",
+ "copy": "Copiar",
+ "clear": "Limpiar",
"default": "Predeterminado",
"enabled": "Habilitado",
"disabled": "Deshabilitado",
diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.json
index 479d00c4..0625ff6f 100644
--- a/src/i18n/locales/fr/translation.json
+++ b/src/i18n/locales/fr/translation.json
@@ -443,6 +443,17 @@
"title": "Niveau de journalisation",
"description": "Définir le niveau de détail de la journalisation"
},
+ "liveLogs": {
+ "title": "Journaux en direct",
+ "description": "Affichez les journaux de l'application en temps réel pour diagnostiquer les problèmes sans ouvrir le fichier journal. Seuls les journaux émis pendant que ce panneau est ouvert sont affichés ; respecte le réglage Niveau de journalisation ci-dessus.",
+ "live": "En direct",
+ "paused": "En pause",
+ "pause": "Pause",
+ "resume": "Reprendre",
+ "copied": "Copié",
+ "lineCount": "{{count}} lignes",
+ "empty": "En attente de journaux… Les entrées apparaîtront ici au fur et à mesure que l'application les émet."
+ },
"updateChecks": {
"label": "Vérifier les mises à jour",
"description": "Vérifier automatiquement les nouvelles versions de Handy"
@@ -569,6 +580,8 @@
"update": "Mettre à jour",
"close": "Fermer",
"open": "Ouvrir",
+ "copy": "Copier",
+ "clear": "Effacer",
"default": "Par défaut",
"enabled": "Activé",
"disabled": "Désactivé",
diff --git a/src/i18n/locales/he/translation.json b/src/i18n/locales/he/translation.json
index 9b0518d3..ac7eb13d 100644
--- a/src/i18n/locales/he/translation.json
+++ b/src/i18n/locales/he/translation.json
@@ -443,6 +443,17 @@
"title": "רמת לוג",
"description": "הגדר את רמת הפירוט של הלוגים"
},
+ "liveLogs": {
+ "title": "לוגים בזמן אמת",
+ "description": "הצג את לוגי האפליקציה בזמן אמת כדי לאבחן בעיות בלי לפתוח את קובץ הלוג. מוצגים רק לוגים שנוצרו בזמן שחלונית זו פתוחה; מתחשב בהגדרת «רמת לוג» שלמעלה.",
+ "live": "בזמן אמת",
+ "paused": "מושהה",
+ "pause": "השהה",
+ "resume": "המשך",
+ "copied": "הועתק",
+ "lineCount": "{{count}} שורות",
+ "empty": "ממתין ללוגים… רשומות יופיעו כאן כשהאפליקציה תפיק אותן."
+ },
"updateChecks": {
"label": "בדוק עדכונים",
"description": "בדוק אוטומטית אם קיימות גרסאות חדשות של Handy"
@@ -569,6 +580,8 @@
"update": "עדכן",
"close": "סגור",
"open": "פתח",
+ "copy": "העתק",
+ "clear": "נקה",
"default": "ברירת מחדל",
"enabled": "פעיל",
"disabled": "כבוי",
diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.json
index 6f7cd035..f57b357c 100644
--- a/src/i18n/locales/it/translation.json
+++ b/src/i18n/locales/it/translation.json
@@ -443,6 +443,17 @@
"title": "Livello di Log",
"description": "Scegli il livello di dettaglio dei log"
},
+ "liveLogs": {
+ "title": "Log in Tempo Reale",
+ "description": "Trasmetti i log dell'applicazione in tempo reale per diagnosticare i problemi senza aprire il file di log. Vengono mostrati solo i log emessi mentre questo pannello è aperto; rispetta l'impostazione Livello di Log qui sopra.",
+ "live": "In Diretta",
+ "paused": "In Pausa",
+ "pause": "Pausa",
+ "resume": "Riprendi",
+ "copied": "Copiato",
+ "lineCount": "{{count}} righe",
+ "empty": "In attesa di log… Le voci appariranno qui man mano che l'app le emette."
+ },
"updateChecks": {
"label": "Controlla aggiornamenti",
"description": "Controlla automaticamente la disponibilità di nuove versioni di Handy"
@@ -569,6 +580,8 @@
"update": "Aggiorna",
"close": "Chiudi",
"open": "Apri",
+ "copy": "Copia",
+ "clear": "Svuota",
"default": "Predefinito",
"enabled": "Abilitato",
"disabled": "Disabilitato",
diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.json
index a9aad4ed..d5c2b8c1 100644
--- a/src/i18n/locales/ja/translation.json
+++ b/src/i18n/locales/ja/translation.json
@@ -443,6 +443,17 @@
"title": "ログレベル",
"description": "ログの詳細度を設定"
},
+ "liveLogs": {
+ "title": "ライブログ",
+ "description": "ログファイルを開かずに問題を診断できるよう、アプリケーションのログをリアルタイムで表示します。このパネルを開いている間に出力されたログのみが表示され、上記の「ログレベル」設定に従います。",
+ "live": "ライブ",
+ "paused": "一時停止中",
+ "pause": "一時停止",
+ "resume": "再開",
+ "copied": "コピーしました",
+ "lineCount": "{{count}} 行",
+ "empty": "ログを待機中… アプリが出力すると、ここにエントリが表示されます。"
+ },
"updateChecks": {
"label": "アップデートを確認",
"description": "Handyの新しいバージョンを自動的にチェック"
@@ -569,6 +580,8 @@
"update": "更新",
"close": "閉じる",
"open": "開く",
+ "copy": "コピー",
+ "clear": "クリア",
"default": "デフォルト",
"enabled": "有効",
"disabled": "無効",
diff --git a/src/i18n/locales/ko/translation.json b/src/i18n/locales/ko/translation.json
index 4e168d2b..863ec599 100644
--- a/src/i18n/locales/ko/translation.json
+++ b/src/i18n/locales/ko/translation.json
@@ -443,6 +443,17 @@
"title": "로그 레벨",
"description": "로깅의 상세도 설정"
},
+ "liveLogs": {
+ "title": "실시간 로그",
+ "description": "로그 파일을 열지 않고도 문제를 진단할 수 있도록 애플리케이션 로그를 실시간으로 표시합니다. 이 패널이 열려 있는 동안 발생한 로그만 표시되며, 위의 로그 레벨 설정을 따릅니다.",
+ "live": "실시간",
+ "paused": "일시정지됨",
+ "pause": "일시정지",
+ "resume": "재개",
+ "copied": "복사됨",
+ "lineCount": "{{count}}줄",
+ "empty": "로그 대기 중… 앱이 로그를 출력하면 여기에 표시됩니다."
+ },
"updateChecks": {
"label": "업데이트 확인",
"description": "Handy의 새 버전을 자동으로 확인합니다"
@@ -569,6 +580,8 @@
"update": "업데이트",
"close": "닫기",
"open": "열기",
+ "copy": "복사",
+ "clear": "지우기",
"default": "기본값",
"enabled": "활성화됨",
"disabled": "비활성화됨",
diff --git a/src/i18n/locales/pl/translation.json b/src/i18n/locales/pl/translation.json
index ed064221..5e95e3db 100644
--- a/src/i18n/locales/pl/translation.json
+++ b/src/i18n/locales/pl/translation.json
@@ -443,6 +443,17 @@
"title": "Poziom logów",
"description": "Ustaw poziom szczegółowości logowania"
},
+ "liveLogs": {
+ "title": "Logi na żywo",
+ "description": "Przesyłaj logi aplikacji na żywo, aby diagnozować problemy bez otwierania pliku logów. Wyświetlane są tylko logi utworzone, gdy ten panel jest otwarty; uwzględnia ustawienie Poziom logów powyżej.",
+ "live": "Na żywo",
+ "paused": "Wstrzymano",
+ "pause": "Wstrzymaj",
+ "resume": "Wznów",
+ "copied": "Skopiowano",
+ "lineCount": "Wierszy: {{count}}",
+ "empty": "Oczekiwanie na logi… Wpisy pojawią się tutaj, gdy aplikacja je wygeneruje."
+ },
"updateChecks": {
"label": "Sprawdzaj aktualizacje",
"description": "Automatycznie sprawdzaj nowe wersje Handy"
@@ -569,6 +580,8 @@
"update": "Aktualizuj",
"close": "Zamknij",
"open": "Otwórz",
+ "copy": "Kopiuj",
+ "clear": "Wyczyść",
"default": "Domyślne",
"enabled": "Włączone",
"disabled": "Wyłączone",
diff --git a/src/i18n/locales/pt/translation.json b/src/i18n/locales/pt/translation.json
index 141a0a03..43a5ba67 100644
--- a/src/i18n/locales/pt/translation.json
+++ b/src/i18n/locales/pt/translation.json
@@ -443,6 +443,17 @@
"title": "Nível de Log",
"description": "Definir a verbosidade do registro"
},
+ "liveLogs": {
+ "title": "Logs ao Vivo",
+ "description": "Transmita os logs do aplicativo em tempo real para diagnosticar problemas sem abrir o arquivo de log. Apenas os logs emitidos enquanto este painel estiver aberto são exibidos; respeita a configuração de Nível de Log acima.",
+ "live": "Ao Vivo",
+ "paused": "Pausado",
+ "pause": "Pausar",
+ "resume": "Retomar",
+ "copied": "Copiado",
+ "lineCount": "{{count}} linhas",
+ "empty": "Aguardando logs… As entradas aparecem aqui à medida que o app as emite."
+ },
"updateChecks": {
"label": "Verificar Atualizações",
"description": "Verificar automaticamente novas versões do Handy"
@@ -569,6 +580,8 @@
"update": "Atualizar",
"close": "Fechar",
"open": "Abrir",
+ "copy": "Copiar",
+ "clear": "Limpar",
"default": "Padrão",
"enabled": "Habilitado",
"disabled": "Desabilitado",
diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.json
index b196a329..7c2a2d29 100644
--- a/src/i18n/locales/ru/translation.json
+++ b/src/i18n/locales/ru/translation.json
@@ -443,6 +443,17 @@
"title": "Уровень журнала",
"description": "Установите уровень детализации журнала"
},
+ "liveLogs": {
+ "title": "Журнал в реальном времени",
+ "description": "Просмотр журналов приложения в реальном времени для диагностики проблем без открытия файла журнала. Отображаются только записи, созданные пока эта панель открыта; учитывает настройку «Уровень журнала» выше.",
+ "live": "В реальном времени",
+ "paused": "Приостановлено",
+ "pause": "Приостановить",
+ "resume": "Возобновить",
+ "copied": "Скопировано",
+ "lineCount": "Строк: {{count}}",
+ "empty": "Ожидание журналов… Записи появятся здесь, как только приложение их создаст."
+ },
"updateChecks": {
"label": "Проверять наличие обновлений",
"description": "Автоматически проверять наличие новых версий Handy"
@@ -569,6 +580,8 @@
"update": "Обновлять",
"close": "Закрывать",
"open": "Открыть",
+ "copy": "Копировать",
+ "clear": "Очистить",
"default": "По умолчанию",
"enabled": "Включено",
"disabled": "Неполноценный",
diff --git a/src/i18n/locales/sv/translation.json b/src/i18n/locales/sv/translation.json
index de731efc..10893158 100644
--- a/src/i18n/locales/sv/translation.json
+++ b/src/i18n/locales/sv/translation.json
@@ -443,6 +443,17 @@
"title": "Loggnivå",
"description": "Ställ in loggningens detaljrikedom"
},
+ "liveLogs": {
+ "title": "Liveloggar",
+ "description": "Strömma programmets loggar i realtid för att diagnostisera problem utan att öppna loggfilen. Endast loggar som skapas medan den här panelen är öppen visas; följer inställningen Loggnivå ovan.",
+ "live": "Live",
+ "paused": "Pausad",
+ "pause": "Pausa",
+ "resume": "Återuppta",
+ "copied": "Kopierad",
+ "lineCount": "{{count}} rader",
+ "empty": "Väntar på loggar… Poster visas här när appen skickar dem."
+ },
"updateChecks": {
"label": "Sök efter uppdateringar",
"description": "Sök automatiskt efter nya versioner av Handy"
@@ -569,6 +580,8 @@
"update": "Uppdatera",
"close": "Stäng",
"open": "Öppna",
+ "copy": "Kopiera",
+ "clear": "Rensa",
"default": "Standard",
"enabled": "Aktiverad",
"disabled": "Inaktiverad",
diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.json
index e4cc4e2e..de1a8ac5 100644
--- a/src/i18n/locales/tr/translation.json
+++ b/src/i18n/locales/tr/translation.json
@@ -443,6 +443,17 @@
"title": "Log Seviyesi",
"description": "Loglamanın ayrıntı düzeyini ayarla"
},
+ "liveLogs": {
+ "title": "Canlı Loglar",
+ "description": "Sorunları log dosyasını açmadan teşhis etmek için uygulama loglarını gerçek zamanlı olarak akıtın. Yalnızca bu panel açıkken oluşturulan loglar gösterilir; yukarıdaki Log Seviyesi ayarına uyar.",
+ "live": "Canlı",
+ "paused": "Duraklatıldı",
+ "pause": "Duraklat",
+ "resume": "Sürdür",
+ "copied": "Kopyalandı",
+ "lineCount": "{{count}} satır",
+ "empty": "Loglar bekleniyor… Uygulama logları ürettikçe girişler burada görünür."
+ },
"updateChecks": {
"label": "Güncellemeleri Kontrol Et",
"description": "Handy için yeni sürümleri otomatik olarak kontrol eder"
@@ -569,6 +580,8 @@
"update": "Güncelle",
"close": "Kapat",
"open": "Aç",
+ "copy": "Kopyala",
+ "clear": "Temizle",
"default": "Varsayılan",
"enabled": "Etkin",
"disabled": "Devre Dışı",
diff --git a/src/i18n/locales/uk/translation.json b/src/i18n/locales/uk/translation.json
index 825c1ee1..f18e501a 100644
--- a/src/i18n/locales/uk/translation.json
+++ b/src/i18n/locales/uk/translation.json
@@ -443,6 +443,17 @@
"title": "Рівень логування",
"description": "Встановіть детальність логування"
},
+ "liveLogs": {
+ "title": "Логи в реальному часі",
+ "description": "Перегляд логів застосунку в реальному часі для діагностики проблем без відкриття файлу логів. Показуються лише логи, створені поки ця панель відкрита; враховує налаштування «Рівень логування» вище.",
+ "live": "У реальному часі",
+ "paused": "Призупинено",
+ "pause": "Призупинити",
+ "resume": "Відновити",
+ "copied": "Скопійовано",
+ "lineCount": "Рядків: {{count}}",
+ "empty": "Очікування логів… Записи з'являтимуться тут, щойно застосунок їх створюватиме."
+ },
"updateChecks": {
"label": "Перевірка оновлень",
"description": "Автоматично перевіряти наявність нових версій Handy"
@@ -569,6 +580,8 @@
"update": "Оновити",
"close": "Закрити",
"open": "Відкрити",
+ "copy": "Копіювати",
+ "clear": "Очистити",
"default": "За замовчуванням",
"enabled": "Увімкнено",
"disabled": "Вимкнено",
diff --git a/src/i18n/locales/vi/translation.json b/src/i18n/locales/vi/translation.json
index b6bfe7c9..b89ffcc5 100644
--- a/src/i18n/locales/vi/translation.json
+++ b/src/i18n/locales/vi/translation.json
@@ -443,6 +443,17 @@
"title": "Mức nhật ký",
"description": "Đặt mức độ chi tiết của nhật ký"
},
+ "liveLogs": {
+ "title": "Nhật ký trực tiếp",
+ "description": "Truyền nhật ký ứng dụng theo thời gian thực để chẩn đoán sự cố mà không cần mở tệp nhật ký. Chỉ hiển thị nhật ký được tạo khi bảng này đang mở; tuân theo cài đặt Mức nhật ký ở trên.",
+ "live": "Trực tiếp",
+ "paused": "Đã tạm dừng",
+ "pause": "Tạm dừng",
+ "resume": "Tiếp tục",
+ "copied": "Đã sao chép",
+ "lineCount": "{{count}} dòng",
+ "empty": "Đang chờ nhật ký… Các mục sẽ xuất hiện ở đây khi ứng dụng phát ra."
+ },
"updateChecks": {
"label": "Kiểm tra cập nhật",
"description": "Tự động kiểm tra phiên bản mới của Handy"
@@ -569,6 +580,8 @@
"update": "Cập nhật",
"close": "Đóng",
"open": "Mở",
+ "copy": "Sao chép",
+ "clear": "Xóa",
"default": "Mặc định",
"enabled": "Đã bật",
"disabled": "Đã tắt",
diff --git a/src/i18n/locales/zh-TW/translation.json b/src/i18n/locales/zh-TW/translation.json
index 6eee9637..04357f97 100644
--- a/src/i18n/locales/zh-TW/translation.json
+++ b/src/i18n/locales/zh-TW/translation.json
@@ -443,6 +443,17 @@
"title": "日誌等級",
"description": "設定日誌的詳細程度"
},
+ "liveLogs": {
+ "title": "即時日誌",
+ "description": "即時串流應用程式日誌,無需開啟日誌檔即可診斷問題。僅顯示此面板開啟期間產生的日誌;遵循上方的「日誌等級」設定。",
+ "live": "即時",
+ "paused": "已暫停",
+ "pause": "暫停",
+ "resume": "繼續",
+ "copied": "已複製",
+ "lineCount": "{{count}} 行",
+ "empty": "正在等待日誌…… 應用程式產生日誌時會顯示於此。"
+ },
"updateChecks": {
"label": "檢查更新",
"description": "自動檢查 Handy 的新版本"
@@ -569,6 +580,8 @@
"update": "更新",
"close": "關閉",
"open": "開啟",
+ "copy": "複製",
+ "clear": "清除",
"default": "預設",
"enabled": "已啟用",
"disabled": "已停用",
diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.json
index 7dd690c5..1cad4166 100644
--- a/src/i18n/locales/zh/translation.json
+++ b/src/i18n/locales/zh/translation.json
@@ -443,6 +443,17 @@
"title": "日志级别",
"description": "设置日志的详细程度"
},
+ "liveLogs": {
+ "title": "实时日志",
+ "description": "实时传输应用程序日志,无需打开日志文件即可诊断问题。仅显示此面板打开期间产生的日志;遵循上方的“日志级别”设置。",
+ "live": "实时",
+ "paused": "已暂停",
+ "pause": "暂停",
+ "resume": "继续",
+ "copied": "已复制",
+ "lineCount": "{{count}} 行",
+ "empty": "正在等待日志…… 应用产生日志时将显示在此处。"
+ },
"updateChecks": {
"label": "检查更新",
"description": "自动检查 Handy 的新版本"
@@ -569,6 +580,8 @@
"update": "更新",
"close": "关闭",
"open": "打开",
+ "copy": "复制",
+ "clear": "清除",
"default": "默认",
"enabled": "已启用",
"disabled": "已禁用",