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

https://github.com/lacunahub/logger

No logs?
https://github.com/lacunahub/logger

logger logging logs

Last synced: 7 days ago
JSON representation

No logs?

Awesome Lists containing this project

README

          

# Installation

```bash
npm install @lacunahub/logger
```

# Usage

```js
import { Logger, TelegramLogger } from '@lacunahub/logger'

const logger = new Logger(),
telegramLogger = new TelegramLogger({
botToken: 'YOUR_BOT_TOKEN',
chatId: 'YOUR_CHAT_ID'
})

logger.info('Hello world!')
telegramLogger.info('Hello world!')
```

[How to get Telegram chat ID](https://docs.lacunabot.com/guides/identifiers/telegram)

# License

This project is licensed under the [MIT License](https://github.com/LacunaHub/lavaluna.js/blob/master/LICENSE)