17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
// file: crates/apps/game-snake-poc-tauri/frontend/ts/logging.ts
|
|
// version: 1
|
|
|
|
import { attachConsole, error, info } from "@fltsci/tauri-plugin-tracing";
|
|
|
|
export async function initializeFrontendTracing(): Promise<void> {
|
|
await attachConsole();
|
|
}
|
|
|
|
export function frontendInfo(message: string): void {
|
|
info(message);
|
|
}
|
|
|
|
export function frontendError(message: string): void {
|
|
error(message);
|
|
}
|