-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Astro.logger not working with Cloudflare Adapter #17823
Copy link
Copy link
Closed
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)pkg: cloudflareRelated to the Cloudflare adapterRelated to the Cloudflare adaptertriage: fix verifiedReporter confirmed the triage bot fix worksReporter confirmed the triage bot fix works
Description
Activity
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)Related to the core `astro` package (scope)pkg: cloudflareRelated to the Cloudflare adapterRelated to the Cloudflare adaptertriage: fix verifiedReporter confirmed the triage bot fix worksReporter confirmed the triage bot fix works
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
when using context.logger or Astro.logger functions in a
output: "server"astro app with cloudflare adapter, the logger api doesn't log anything to the console. console.log() works but it prefixes it withtime [vite] messagelike thisbut with node adapter, it doesn't and behves correctly
What's the expected result?
it should behave like how node adapter behaves
Link to Minimal Reproducible Example
https://github.com/keshav-templates/astro-looger-cloudflare-bug-2026.git
Participation