MCPcopy Create free account
hub / github.com/GCWing/BitFun / output

Method output

src/web-ui/src/shared/utils/logger.ts:327–338  ·  view source on GitHub ↗
(entry: LogEntry)

Source from the content-addressed store, hash-verified

325 }
326
327 private output(entry: LogEntry): void {
328 const { level, message, context, data } = entry;
329 const contextStr = context ? `[${context}] ` : '';
330 const dataStr = formatData(data);
331 const fullMessage = dataStr ? `${contextStr}${message} ${dataStr}` : `${contextStr}${message}`;
332
333 if (isTauri) {
334 this.outputTauri(level, fullMessage);
335 } else {
336 this.outputConsole(level, fullMessage, data);
337 }
338 }
339
340 private outputTauri(level: LogLevel, message: string): void {
341 // Fire and forget - don't await to avoid blocking

Callers 15

logMethod · 0.95
runFunction · 0.80
get_clipboard_filesFunction · 0.80
read_xclip_uri_listFunction · 0.80
read_wl_paste_uri_listFunction · 0.80
download_skill_marketFunction · 0.80
frontmost_pidFunction · 0.80
list_running_appsFunction · 0.80
open_appMethod · 0.80

Calls 3

outputTauriMethod · 0.95
outputConsoleMethod · 0.95
formatDataFunction · 0.85

Tested by 2

git_with_envFunction · 0.64
run_gitFunction · 0.64