Skip to content

Log all server logs to your Discord channelšŸ¤–

Notifications You must be signed in to change notification settings

saranonearth/Ayioo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

10 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

Ayioo

Feb-27-2021 02-06-06

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?

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?

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}`)
})

About

Log all server logs to your Discord channelšŸ¤–

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published