Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions docs/content/changelog/workers-logs-history.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: Worker logs with history on NuxtHub Admin
description: Worker logs are now available on NuxtHub Admin, allowing you to filter and analyze historical logs from your deployed Nuxt App.
date: 2025-05-08
image: '/images/changelog/nuxthub-workers-logs-history.png'
authors:
- name: Sebastien Chopin
avatar:
src: https://avatars.githubusercontent.com/u/904724?v=4
to: https://bsky.app/profile/atinux.com
username: atinux
- name: Rihan Arfan
avatar:
src: https://avatars.githubusercontent.com/u/20425781?v=4
to: https://bsky.app/profile/rihan.dev
username: rihan.dev
- name: Ahad Birang
avatar:
src: https://avatars.githubusercontent.com/u/2047945?v=4
to: https://bsky.app/profile/farnabaz.dev
username: farnabaz.dev
---

::tip
Worker logs are available from [`@nuxthub/core >= v0.8.27`](https://github.com/nuxt-hub/core/releases/tag/v0.8.27). In the latest version, Worker Logs are enabled by default.
::

It is now possible to view, filter and analyze worker logs within the NuxtHub Admin.

The logs page are refactored to be more user-friendly and easier to use. The new UI is easier to read and allows you to view the whole log message. This new logs page is available for both Pages and Workers.

![Worker logs](/images/changelog/worker-logs-admin.png){class="border border-default rounded"}

## Enable Worker Logs

Worker logs are enabled by default in the latest version of NuxtHub core module (`@nuxthub/core >= v0.8.27`).


::note
If you are using older versions and you cannot upgrade, you can enable Worker Logs by setting `hub.bindings.observability.logs` to `true` in your `nuxt.config.ts`.

```ts
export default defineNuxtConfig({
hub: {
bindings: {
observability: {
logs: true,
},
},
},
});
```
::

::callout{to="/changelog/observability-additional-bindings" icon="i-lucide-book"}
Learn more about enabling Worker Logs and additional bindings.
::
4 changes: 2 additions & 2 deletions docs/content/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ hero:
light: '/images/landing/hero-light.svg'
dark: '/images/landing/hero-dark.svg'
headline:
label: "Introducing hubAutoRAG()"
to: /changelog/hub-autorag
label: "Workers logs with history"
to: /changelog/workers-logs-history
icon: i-lucide-arrow-right
features:
- title: Cloud Hosting
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default defineNuxtModule<ModuleOptions>({
openapi: nuxt.options.nitro.experimental?.openAPI === true,
// Extra bindings for the project
bindings: {
observability: {
logs: true // enable with default settings
},
hyperdrive: {},
compatibilityFlags: nuxt.options.nitro.cloudflare?.wrangler?.compatibility_flags
},
Expand Down