loggram
v1.0.2
Published
A library that sends your app logs to Telegram
Downloads
4
Maintainers
Readme
📘 Usage
First, you need to create a Telegram bot. How to Create
After creating the bot, you need to get a chat id. How to Get
Then, you can start implementing the Loggram.
📘 Example
const Loggram = require('loggram')
var loggram = new Loggram(TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID);
loggram.sendLog('Hello World!').then(res => {
console.log(res);
}).catch(err => {
console.log(err);
});
📘 Options
sendLog(appName, type, message){
//appName optional
//type optional ('info', 'error', 'warning', 'success')
//message required
};
sendLog(message){
//message required
};
🚀 Technologies
This project was developed with the following technologies:
📄 License
This project is under the MIT license. See the LICENSE for more information.