Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Intevel/directus-logsnag

📢 Easily get notified when something in Directus happens.
https://github.com/Intevel/directus-logsnag

directus directus-extension directus-hooks extension logsnag

Last synced: about 2 months ago
JSON representation

📢 Easily get notified when something in Directus happens.

Awesome Lists containing this project

README

        

![directus-logsnag](https://github.com/Intevel/directus-logsnag/blob/master/banner.png?raw=true)

# Directus LogSnag

📢 Get notified when something in Directus happens.

## What is LogSnag?

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](https://logsnag.com/)

## Installation

> If you have any questions or problems, open an discussion on Github.

1. Firstly create a LogSnag account
2. Create your LogSnag project and your channels
3. Get your LogSnag API Token, from the API page under settings. Generate or revoke your API tokens there.
4. Clone this repository, copy the file from `dist` to your directus extensions folder `/extensions/hooks/directus-logsnag/`.
5. Now you can get started with configuring ✨

## Configuration
Your configuration file should be in your directus extensions folder under `/extensions/hooks/directus-logsnag/logsnag.config.json`.

```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.

## License

Published under MIT - Made with 💜 by Conner Luka Bachmann