📢 Get notified when something in Directus happens.
LogSnag is a simple event tracking tool. It helps you keep track what is happening within your projects, creates custom feeds, and notifies you of important events. Register your application here
If you have any questions or problems, open an discussion on Github.
- Firstly create a LogSnag account
- Create your LogSnag project and your channels
- Get your LogSnag API Token, from the API page under settings. Generate or revoke your API tokens there.
- Clone this repository, copy the file from
dist
to your directus extensions folder/extensions/hooks/directus-logsnag/
. - Now you can get started with configuring ✨
Your configuration file should be in your directus extensions folder under /extensions/hooks/directus-logsnag/logsnag.config.json
.
{
"api_token": "-",
"events": [
{ "name": "users.create", "project": "test", "channel": "nuxttest", "event": "New User!", "description": "A new Directus user was created", "icon": "🤑", "notify": true },
{ "name": "payments.create", "project": "test", "channel": "nuxttest", "event": "New Payment", "description": "We've got a new payment :)", "icon": "💸", "notify": true }
]
}
This is the configuration scheme, please insert your LogSnag API Token in api_token
.
Now you can configure your events, name
is the parameter for the event name in Directus. So users.create
would be the event in Directus which is called when a new User is created, after the event name, the LogSnag Configuration follows, this is how the message which is sended to LogSnag look like.
Published under MIT - Made with 💜 by Conner Luka Bachmann