• Product Introduction
  • Quick Start
    • Agent Development
    • Importing a Git Repository
    • Starting From a Template
    • Direct Upload
    • Start with AI
  • Framework Guide
    • Agent
    • Frontends
      • Vite
      • React
      • Vue
      • Hugo
      • Other Frameworks
    • Backends
    • Full-stack
      • Next.js
      • Nuxt
      • Astro
      • React Router
      • SvelteKit
      • TanStack Start
      • Vike
    • Custom 404 Page
  • Project Guide
    • Project Management
    • edgeone.json
    • Configuring Cache
    • Building Output Configuration
    • Error Codes
  • Build Guide
  • Deployment Guide
    • Overview
    • Create Deploys
    • Manage Deploys
    • Deploy Button
    • Using Github Actions
    • Using Gitlab CI/CD
    • Using CNB Plugin
    • Using IDE PlugIn
    • Using CodeBuddy IDE
  • Domain Management
    • Overview
    • Custom Domain
    • HTTPS Configuration
      • Overview
      • Apply for Free Certificate
      • Using Managed SSL Certificate
    • Configure DNS CNAME Record
  • Observability
    • Overview
    • Metric Analysis
    • Log Analysis
  • Functions
    • Overview
    • Edge Functions
    • Cloud Functions
      • Overview
      • Node.js
      • Python
      • Go
  • Agents
    • Overview
    • Quick Start
    • Conversation Storage
    • Observability
    • Sandbox Tool
      • Overview
      • Using the Agent Framework
      • Sandbox Atomic API
      • Network Search Tool
    • Agent Authentication
  • Models
    • Overview
    • Models and Vendors
      • Overview
      • Using Vendor Keys
        • OpenAI
        • Anthropic
        • Google AI Studio
        • DeepSeek
        • MiniMax
        • Hunyuan
        • Zhipu
        • MoonShot AI
    • FAQs
  • Storage
    • Overview
    • KV
    • Blob
  • Middleware
  • AI-Native Development
    • Skills
    • MCP
  • Copilot
    • Overview
    • Quick Start
  • API Token
  • EdgeOne CLI
  • Message Notification
  • Integration Guide
    • AI
      • Dialogue Large Models Integration
      • Large Models for Images Integration
    • Database
      • Supabase Integration
      • Pages KV Integration
    • Ecommerce
      • Shopify Integration
      • WooCommerce Integration
    • Payment
      • Stripe Integration
      • Integrating Paddle
    • CMS
      • WordPress Integration
      • Contentful Integration
      • Sanity Integration
      • Payload Integration
    • Authentication
      • Supabase Integration
      • Clerk Integration
  • Best Practices
    • Adding an AI Chat Assistant to a Website
    • AI Dialogue Deployment: Deploy Project with One Sentence Using Skill
    • Using General Large Model to Quickly Build AI Application
    • Use the DeepSeek model to quickly build a conversational AI site
    • Building an Ecommerce Platform with Shopify
    • Building a SaaS Site Using Supabase and Stripe
    • Building a Company Brand Site Quickly
    • How to Quickly Build a Blog Site
  • Migration Guides
    • Migrating from Vercel to EdgeOne Makers
    • Migrating from Cloudflare Pages to EdgeOne Makers
    • Migrating from Netlify to EdgeOne Makers
  • Troubleshooting
  • FAQs
  • Limits
  • Pricing
  • Contact Us
  • Release Notes

Log Analysis

Makers Log Analysis automatically collects, stores, filters, and analyzes log data generated during project runtime for you. Logs are categorized and managed by source. In the console, you can query detailed data for each request by dimensions such as time, status, and keywords.

Log Source

The Log Analysis page in the console provides a "Log Source" dropdown filter. It currently supports the following sources (and will be continuously expanded in the future):
Source
Description
Code Location
All Logs
Displays logs from all sources.
SSR
Server-side rendering function logs automatically generated by full-stack frameworks (for example, Next.js)
Automatically generated by the framework
Cloud Functions
Logs of your cloud functions
cloud-functions/ folder
Agents
Logs of your AI Agents
agents/ or a folder you define
Note:
Logs from the Edge Functions source (the edge-functions/ folder) are currently being planned.

Console Search Logs

1. Log in to the Makers console.
2. Select the target project.
3. Switch to "log analysis".
4. Retrieve the target log by status, time period, and keyword.


Searching Function Log

You can view basic log information of function calls and quickly detect and resolve exceptions or errors in API calls.

Time Filtering

By default, the log list displays information of related requests in the most recent 15 minutes. You can also filter and view data for a specific period, including the past 15 minutes, past hour, past 6 hours, past 12 hours, past 24 hours, or select custom to manually input a specific time range within 24 hours.

Text Filtering

You can use simple text matching to filter log content, such as request ID or log keyword. Or filter by log status, current filter criteria include: call succeeded, call failed, call timeout.

Custom Log

For example, for Cloud Functions, refer to the respective module documentation for Agent / SSR custom logging methods.
By default, Cloud Functions will send call logs with detailed information about requests, responses and relevant metadata. You can also add custom logs in the entire code. All content in console.log will display in Cloud Functions logs.
The following example shows custom logs with console.log in a request handler.
export const onRequestGet = async ({ request }) => {
const info = {
nodeVersion: process.version,
pid: process.pid,
platform: os.platform(),
arch: os.arch(),
cpus: os.cpus()?.length ?? 0,
totalMem: os.totalmem(),
freeMem: os.freemem(),
uptimeSec: process.uptime(),
randomUUID: randomUUID(),
now: new Date().toISOString(),
url: request.url,
}

console.log('=====info=====', info); // Custom Log

return new Response(JSON.stringify(info), {
status: 200,
headers: { 'Content-Type': 'application/json; charset=UTF-8' },
})
}


Log Structure Description

Each function request log records platform logs marking request start, request end, request error, function return information, and request execution status. User logs are encapsulated between request start and end. The log structure is as follows:
Log Detail
Log Type
Content Meaning
START RequestId:09c346d3-8417-49c5-8569-xxxxxxxxxxxx
platform log
Tag request started.
init log
user log
During function initialization, the user log content is printed. The container executes initialization logic only in cold startup scenarios, with no initialization log output in non-cold startup scenarios.
Init Report RequestId: 09c346d3-8417-49c5-8569-xxxxxxxxxxxx Coldstart: 236ms (PullCode: 70ms InitRuntime: 8ms InitFunction: 158ms) Memory: 640MB MemUsage: 57.86MB
platform log
Initialization execution log. Coldstart indicates the total time consumed in the initialization phase. Among them, PullCode represents the time consumed to pull user functions and layer code or pull images during initialization. InitRuntime indicates the platform time consumed in the initialization phase. InitFunction shows the execution time of user code during initialization. Memory refers to the function configuration memory. MemUsage indicates the run memory during initialization. The container executes initialization logic only in cold startup scenarios, with no initialization log output in non-cold startup scenarios.
invoke log
user log
User log content printed during the function invocation phase.
ERROR RequestId:09c346d3-8417-49c5-8569-xxxxxxxxxxxx Result:xxx
platform log
Function error reason. No ERROR log is generated during normal function execution.
Response RequestId:09c346d3-8417-49c5-8569-xxxxxxxxxxxx RetMsg:"Hello World"
platform log
Function return information is recorded in RetMsg.
END RequestId:09c346d3-8417-49c5-8569-xxxxxxxxxxxx
platform log
Tag request ended.
Report RequestId:09c346d3-8417-49c5-8569-c55033b17f51 Duration:1ms Memory:128MB MemUsage:29.734375MB
platform log
Function call execution log. Duration is the function execution duration. Memory is the function configuration memory. MemUsage is the run memory during function execution.

Log Retention and Limitation

Platform default only retains logs within 24 hours.
The maximum limit for a single log is 5 MB. Logs exceeding this size will be truncated, generally the message field is truncated.

ai-agent
You can ask me like
How to Get Started with EdgeOne Makers?