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