ZuploZuplo
LoginSign Up
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
Developer Portal
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
    Overview
    Request & Context
    Configuration
    Caching APIs
    Data Management
    Extensions & Hooks
    Error Handling
    Logging & Observability
      LoggerConsole LoggingAudit Log
    Types and Interfaces
    Web Standards
    Advanced Topics
Build with AI
Zuplo CLI
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
Logging & Observability

Console Logging

Zuplo supports standard JavaScript console logging methods as a convenience for developers. These console methods map directly to the Zuplo context logger methods.

Supported Methods

The following console methods are supported:

  • console.log() - Maps to context.log.info()
  • console.info() - Maps to context.log.info()
  • console.warn() - Maps to context.log.warn()
  • console.error() - Maps to context.log.error()
  • console.debug() - Maps to context.log.debug()

Usage

You can use console methods anywhere in your Zuplo code:

Code
export default async function (request: ZuploRequest, context: ZuploContext) { console.log("Processing request", request.url); try { const result = await processRequest(request); console.info("Request processed successfully"); return result; } catch (error) { console.error("Error processing request:", error); throw error; } }

Limitations

  • Only the standard logging methods listed above are supported
  • Other console methods (like console.table(), console.time(), etc.) are no-ops and won't produce any output

See Also

  • Logger - Using the context logger
  • Logging Guide - Detailed logging documentation
Edit this page
Last modified on November 17, 2025
LoggerAudit Log
On this page
  • Supported Methods
  • Usage
  • Limitations
  • See Also
TypeScript