appLog
uses node:path
Where what an app the studio started says is kept (.tcm/studio/logs/<app>.log), if it's an app's name.
import type { Codebase } from "#codebase/tcmts/cli/codebase"; import path from "node:path"; export const appLog = (cb: Codebase, app: string): string | undefined => /^[\w$][\w.$-]*$/.test(app) ? path.join(cb.lay.tcmDir, "studio", "logs", `${app}.log`) : undefined