1import { createDebugLogger } from "../../lib/debugLog";
2
3/**
4 * Debug logging for the mobile terminal pipeline. Prefix: `[t3-terminal]`.
5 *
6 * Enabled when `__DEV__` is true, or set `globalThis.__T3_TERMINAL_DEBUG__`
7 * (or the shared `globalThis.__T3_DEBUG__` filter) in a JS debugger / Metro
8 * console to trace release/TestFlight builds.
9 */
10const logger = createDebugLogger("terminal", {
11 enabledInDev: true,
12 legacyGlobalFlag: "__T3_TERMINAL_DEBUG__",
13});
14
15export function terminalDebugLog(message: string, data?: Record<string, unknown>): void {
16 logger.log(message, data);
17}