You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/src/pages/composables/plugins/use-logger.md
+76Lines changed: 76 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,82 @@ Adapters let you swap the underlying logging implementation without changing you
77
77
78
78
The default `Vuetify0LoggerAdapter` maps each level to the correct native console method — `debug` → `console.debug`, `info` → `console.info`, `warn` → `console.warn`, `error`/`fatal` → `console.error`. This ensures browser DevTools can correctly filter by level.
79
79
80
+
### Pino
81
+
82
+
[Pino](https://getpino.io/) is a high-performance JSON logger. Requires the `pino` package.
// Wire outbound: sync read/archive actions back to the backend
210
-
context.on('notification:read', (data:any) => {
211
-
myBackend.markRead(data.id)
212
-
})
213
-
}
197
+
[Knock](https://knock.app) is a notification infrastructure platform with feeds, preferences, and multi-channel delivery. Install their [JavaScript SDK](https://docs.knock.app/sdks/javascript/overview) to get started. Supports both inbound (feed → notifications) and outbound (read/archive → Knock API).
Custom fields are preserved on the ticket and accessible anywhere you inject the notifications context.
261
-
262
-
> [!ASKAI] How do I write a custom adapter for my backend?
209
+
```bash yarn
210
+
yarn add @knocklabs/client
211
+
```
263
212
264
-
### Knock
213
+
```bash bun
214
+
bun add @knocklabs/client
215
+
```
265
216
266
-
[Knock](https://knock.app) is a notification infrastructure platform with feeds, preferences, and multi-channel delivery. Install their [JavaScript SDK](https://docs.knock.app/sdks/javascript/overview) to get started. Supports both inbound (feed → notifications) and outbound (read/archive → Knock API).
The adapter maps Novu severity strings to `NotificationSeverity` by default: `critical`/`high` → `error`, `medium` → `warning`, `low` → `info`. Pass a custom `severity` function to override.
0 commit comments