toolz
This commit is contained in:
parent
fa8a46326a
commit
2437ce3f8b
14 changed files with 973 additions and 13 deletions
|
|
@ -14,10 +14,10 @@ export namespace Log {
|
|||
export function file(directory: string) {
|
||||
const out = Bun.file(
|
||||
path.join(AppPath.data(directory), "opencode.out.log"),
|
||||
);
|
||||
).writer();
|
||||
const err = Bun.file(
|
||||
path.join(AppPath.data(directory), "opencode.err.log"),
|
||||
);
|
||||
).writer();
|
||||
write["out"] = (msg) => out.write(msg);
|
||||
write["err"] = (msg) => err.write(msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue