Logs service
TheLogsService manages logs within a world’s database. Defined in
lib/database/world/logs/service.ts, it provides the following capabilities:
listByWorld(worldId, limit): Retrieves logs in descending chronological order.listSince(sinceTimestamp, limit): Retrieves logs in ascending order starting from a specific timestamp.
Log levels
The platform utilizes standard log levels to categorize severity and intent:info, warn, error, and debug.
Log triggers
Specific platform events automatically trigger log entries in the world-scoped database for auditing and debugging:| Event | World ID source | Level | Notes |
|---|---|---|---|
| World created | New world id | info | Includes the world label in metadata. |
| World updated | :world | info | Includes the changed fields in metadata. |
| World deleted | :world | info | Created before deletion to maintain audit. |
| SPARQL query | :world | info | Includes the query type or size. |
| SPARQL update | :world | info | Includes the update type. |