Automatically capture and record the API calls made to your Strapi application
npm install strapi-plugin-logz
Automatically capture and record the API calls made to your Strapi application
!Screenshot of an imported design
- Strapi Plugin Logz
- 💸 Support Me
- ⚙️ Version
- 💻 Prerequisites
- ⬇️ Installation
- 🎚️ Plugin Configuration
- ▶️ Usage
- 📝 License
- 🚀 Services
- Find
- FindOne
- Count
If you can 😊
This plugin is compatible with Strapi v5.
- Node v18+ (I recommend using nvm, there is a windows and mac/linux version)
- A Strapi v5 project (npx create-strapi-app@latest my-project)
Install the plugin by running the following command:
``bash`
npm install strapi-plugin-logz
The plugin configuration accepts a single skipList property.
This is the type definition for the configuration:
``ts`
/**
* Configuration for the Logz Strapi plugin
*/
export interface LogzConfig {
/**
* Enter the list of collections to skip creating logs for
*
* @default []
*
* @example
* ts``
* // config/plugins.ts
*export default ({ env }) => ({
* // ...
* logz: {
* enabled: true,
* config: {
* // This will skip creating logs for the collection "car"
* // All requests sent to /api/cars will not be logged
* skipList: ["car"],
* },
* },
* // ...
*});
*/
skipList: Array
}
After installing, you can access the Logz Dashboard by navigating to the Logz section in the admin panel.
This project is licensed under the MIT License - see the LICENSE file for details
`ts`
await strapi.plugin("logz").service("logz").find(QUERY_PARAMS_OBJECT);
`ts`
await strapi.plugin("logz").service("logz").findOne(ID, QUERY_PARAMS_OBJECT);
`ts``
await strapi.plugin("logz").service("logz").count(QUERY_PARAMS_OBJECT);