chore: move agent log filepath. (#275)

sweep/improve-logging-information
Zhiming Ma 2023-07-03 14:16:19 +08:00 committed by GitHub
parent 2a01fdf177
commit 9ca7d11295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -68,10 +68,10 @@ var init_logger = __esm({
init_env();
stream = isBrowser ? null : (
/**
* Default rotating file locate at `~/.tabby/agent-logs/`.
* Default rotating file locate at `~/.tabby/agent/logs/`.
*/
require("rotating-file-stream").createStream("tabby-agent.log", {
path: require("path").join(require("os").homedir(), ".tabby", "agent-logs"),
path: require("path").join(require("os").homedir(), ".tabby", "agent", "logs"),
size: "10M",
interval: "1d"
})

File diff suppressed because one or more lines are too long

View File

@ -28477,10 +28477,10 @@ var init_logger = __esm({
init_env();
stream = isBrowser ? null : (
/**
* Default rotating file locate at `~/.tabby/agent-logs/`.
* Default rotating file locate at `~/.tabby/agent/logs/`.
*/
(init_es(), __toCommonJS(es_exports)).createStream("tabby-agent.log", {
path: (init_path(), __toCommonJS(path_exports)).join((init_os(), __toCommonJS(os_exports)).homedir(), ".tabby", "agent-logs"),
path: (init_path(), __toCommonJS(path_exports)).join((init_os(), __toCommonJS(os_exports)).homedir(), ".tabby", "agent", "logs"),
size: "10M",
interval: "1d"
})

File diff suppressed because one or more lines are too long

View File

@ -7,10 +7,10 @@ import { isBrowser } from "./env";
const stream = isBrowser
? null
: /**
* Default rotating file locate at `~/.tabby/agent-logs/`.
* Default rotating file locate at `~/.tabby/agent/logs/`.
*/
require("rotating-file-stream").createStream("tabby-agent.log", {
path: require("path").join(require("os").homedir(), ".tabby", "agent-logs"),
path: require("path").join(require("os").homedir(), ".tabby", "agent", "logs"),
size: "10M",
interval: "1d",
});