Logs
Capture, search and follow the log entries of your project — every request, command and trigger, one request flow at a time.
The Logs module records what happens in your project: each request to the Hub and the API (http:request / http:response), the commands and queries it ran, triggers that were skipped, and the work Norbix does in the background. You search the entries in Cloud, open one entry to see the whole request flow it belongs to, and keep the entries in your own database with the Norbix Logging integration.
Enable the module
Open a project and choose Logs in the left menu. While the module is off, Cloud shows the Norbix Logs page with the ENABLE LOGS button. You need a project role that can manage modules (the logging:manage permission, for example Owner or Administrator).

Logging is opt-in: turning the module on alone stores nothing. The first time you enable it, the card Where should your logs be stored? has the check box Save logs to my default database. Tick it — Norbix then creates a Norbix Logging integration in your project's default database and tests it, so entries show up in Cloud at once. The check box is there only when the project has a default database (Database → Integrations); without one, the card says No default database yet and you add Norbix Logging later.

After ENABLE LOGS, Cloud opens the Logs list and shows the Logs menu: Logs (See project logs), Integrations (Third-Party Integrations), Settings (Logs settings). The list fills as soon as the project is used.

To turn the module off again, see Settings.
Module map
Search the entries by level, module, correlation id, event code, text and date; open one to see its request flow.
Where the entries go. Norbix Logging keeps them in your database and is the only provider that delivers today; test, disable or delete an integration. Logging has no default integration.
Two log filters, Clean all logs, and turning the module off.
Your first log entries
Enable the module with Save logs to my default database ticked — or add Norbix Logging later and test it. An integration receives entries only when it is enabled and its last test passed.
Use your project: call the API from your app, save a record, run a trigger. For example, publishing the
bookscollection writes anhttp:requestentry, two command entries and anhttp:responseentry, all with one correlation id.Open Logs, filter by Level, Event Code or Search, and press the timestamp of an entry.
Read the request flow: every entry with the same correlation id, oldest first, with its metadata.
When the list gets too long, use the filters on Settings.
Use it from code
Every Do it from code block in the Logs pages uses this client. Install @norbix.ai/ts (see SDK install) and set NORBIX_API_KEY to a project API key.
The CLI lines use the generic norbix hub logs … commands of @norbix.ai/cli (signed in with norbix login, project id in NORBIX_PROJECT_ID):
Related
Integrations concept · Errors · SDK · CLI · API
Last updated