For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Logging

GAME and ACP SDK logs can get complex. We would recommend to implement properly logging to monitor your agent properly in production.

// RECOMMENDED: Implement structured logging
function logJobEvent(eventType, job, details = {}) {
  const logEntry = {
    timestamp: new Date().toISOString(),
    eventType,
    jobId: job.id,
    phase: job.phase,
    ...details
  };
  
  console.log(JSON.stringify(logEntry));
  
  // Could also send to monitoring service
  // monitor.trackEvent(logEntry);
}

Last updated