Skip to content

Commit c55f430

Browse files
author
rain
committed
docs: fix TypeScript logging import example
1 parent 833179b commit c55f430

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/docs/00300-resources/00100-how-to/00300-logging.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ SpacetimeDB provides logging capabilities for debugging and monitoring your modu
1818
Use the standard `console` API to write logs from your reducers:
1919

2020
```typescript
21-
import { spacetimedb } from 'spacetimedb/server';
21+
import { schema, t } from 'spacetimedb/server';
22+
23+
const spacetimedb = schema({ /* tables */ });
24+
export default spacetimedb;
2225

2326
export const process_data = spacetimedb.reducer({ value: t.u32() }, (ctx, { value }) => {
2427
console.log(`Processing data with value: ${value}`);

0 commit comments

Comments
 (0)