https://github.com/saranonearth/ayioo
Log all server logs to your Discord channel🤖
https://github.com/saranonearth/ayioo
discord-logger logger middleware serverless-logger
Last synced: 10 months ago
JSON representation
Log all server logs to your Discord channel🤖
- Host: GitHub
- URL: https://github.com/saranonearth/ayioo
- Owner: saranonearth
- Created: 2021-02-21T20:45:09.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-26T21:48:42.000Z (over 5 years ago)
- Last Synced: 2025-08-19T03:17:35.140Z (10 months ago)
- Topics: discord-logger, logger, middleware, serverless-logger
- Language: TypeScript
- Homepage:
- Size: 213 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Ayioo

Ayioo is a logger which logs your server logs on discord channel.
Ayioo also provides a http middleware which logs requests and responses out of the box to your discord channel.🔥
```
> npm install ayiooo
```
#### How to use the logger?
```js
import {Ayioo} from 'ayiooo'
Ayioo.configure({
token:"DISCORD_TOKEN",
channelID:"DISCORD_CHANNEL_ID"
})
Ayioo.log("Hey🔥");
Ayioo.warn("Warn⚠️");
Ayioo.error("error🚨");
```
#### How to use AyiooCatch middleware?
```js
import express from 'express'
import {AyiooCatch} from 'ayiooo'
const app = express()
const port = 3001
Ayioo.configure({
token:"DISCORD_TOKEN",
channelID:"DISCORD_CHANNEL_ID"
})
app.use(AyiooCatch(
{token:`DISCORD_TOKEN`,
channelId:'DISCORD_CHANNEL_ID',instance:true})) //instance property is set to false by default
app.get('/', (req, res) => {
res.send('Hello World!')
Ayioo.log('FROM GET /')
})
app.listen(port, () => {
Ayioo.log(`Example app listening at http://localhost:${port}`)
})
```