Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add file logger option to CLI

Tomas Valenta837a326bdba8
diff --git a/.changeset/green-readers-join.md b/.changeset/green-readers-join.md
new file mode 100644
index 000000000..5692b117a
--- /dev/null
+++ b/.changeset/green-readers-join.md
@@ -0,0 +1,5 @@
+---
+"@e2b/cli": patch
+---
+
+Add file logger option
diff --git a/apps/docs/src/app/cli/commands/page.mdx b/apps/docs/src/app/cli/commands/page.mdx
index 92a97d607..0fe5412d2 100644
--- a/apps/docs/src/app/cli/commands/page.mdx
+++ b/apps/docs/src/app/cli/commands/page.mdx
@@ -283,7 +283,7 @@ You can use `e2b sandbox list` to get a list of running sandboxes and their IDs
Default value is `pretty`.
</Option>
<Option name="loggers" type="--loggers">
- Specify enabled loggers — allowed values are `process`, `filesystem`, `terminal`, `network`.
+ Specify enabled loggers — allowed values are `process`, `filesystem`, `terminal`, `network` and `file`.
You can specify multiple loggers by separating them with a comma.
Default value is `process,filesystem`.
diff --git a/packages/cli/src/commands/sandbox/logs.ts b/packages/cli/src/commands/sandbox/logs.ts
index 4c9fca460..89e01408b 100644
--- a/packages/cli/src/commands/sandbox/logs.ts
+++ b/packages/cli/src/commands/sandbox/logs.ts
@@ -90,6 +90,7 @@ enum LoggerService {
FILESYSTEM = 'filesystem',
TERMINAL = 'terminal',
NETWORK = 'network',
+ FILE = 'file',
}