Logz
Automatically capture and record the API calls made to your Strapi application
Strapi Plugin Logz
Automatically capture and record the API calls made to your Strapi application
💸 Support Me
If you can 😊
⚙️ Version
This plugin is compatible with Strapi v5.
💻 Prerequisites
- 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
)
⬇️ Installation
Install the plugin by running the following command:
npm install strapi-plugin-logz
🎚️ Plugin Configuration
The plugin configuration accepts a single skipList
property.
This is the type definition for the configuration:
1/**
2 * Configuration for the Logz Strapi plugin
3 */
4export interface LogzConfig {
5 /**
6 * Enter the list of collections to skip creating logs for
7 *
8 * @default []
9 *
10 * @example
11 * ```ts
12 * // config/plugins.ts
13 *export default ({ env }) => ({
14 * // ...
15 * logz: {
16 * enabled: true,
17 * config: {
18 * // This will skip creating logs for the collection "car"
19 * // All requests sent to /api/cars will not be logged
20 * skipList: ["car"],
21 * },
22 * },
23 * // ...
24 *});
25 */
26 skipList: Array<string>;
27}
▶️ Usage
After installing, you can access the Logz Dashboard by navigating to the Logz
section in the admin panel.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details
🚀 Services
Find
1await strapi.plugin("logz").service("logz").find(QUERY_PARAMS_OBJECT);
FindOne
1await strapi.plugin("logz").service("logz").findOne(ID, QUERY_PARAMS_OBJECT);
Count
1await strapi.plugin("logz").service("logz").count(QUERY_PARAMS_OBJECT);
Install now
npm install strapi-plugin-logz
Create your own plugin
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.