Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add possibiliy to filter out logs based on loggers
Jakub Novakd60ea0f6fb57
diff --git a/packages/cli/src/commands/sandbox/logs.ts b/packages/cli/src/commands/sandbox/logs.tsindex 1158776cc..36c87faaa 100644--- a/packages/cli/src/commands/sandbox/logs.ts+++ b/packages/cli/src/commands/sandbox/logs.ts@@ -117,7 +117,8 @@ export const logsCommand = new commander.Command('logs')).option('--loggers [loggers]',- 'filter logs by loggers. Specify multiple loggers by separating them with a comma.'+ 'filter logs by loggers. Specify multiple loggers by separating them with a comma.',+ (val: string) => val.split(',')).action(async (@@ -165,7 +166,13 @@ export const logsCommand = new commander.Command('logs')}for (const log of logs) {- printLog(log.timestamp, log.line, level, format, opts?.loggers)+ printLog(+ log.timestamp,+ log.line,+ level,+ format,+ opts?.loggers ?? undefined+ )}const isRunning = await isRunningPromise