log

This module is available to use in your EdgeWorkers code bundles to log messages generated during the current request.

You need to enable enhanced debug headers to use the log module.

Logging only occurs once you've requested logging information using a Pragma header. For more information and instructions see the JavaScript logging section.

import { logger } from 'log'; // Import the logger module
export function onClientRequest (request) {
  logger.log('Hello'); // Call the log method from the logger module
}