Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Releases: maraisr/workers-logger

v0.1.0

05 Dec 06:40
ecc33fa
Compare
Choose a tag to compare

BREAKING CHANGES

  • Pins diary@0.3.0 — which supports worker modules. (see https://github.com/maraisr/diary/releases/tag/0.3.0)

  • In order to support Cloudflare Module Workers — ambient environment variables no longer exist. Which leaves this up to the developer to opt log events in with the supplied enable api.

    •  export default {
         fetch(req, env) {
            enable(env.DEBUG);
      
            const log = track(request);
            // ...
         }
       }