https://github.com/lacunahub/logger
No logs?
https://github.com/lacunahub/logger
logger logging logs
Last synced: 7 days ago
JSON representation
No logs?
- Host: GitHub
- URL: https://github.com/lacunahub/logger
- Owner: LacunaHub
- License: mit
- Created: 2024-03-10T21:54:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-26T18:43:34.000Z (about 2 years ago)
- Last Synced: 2025-07-03T17:07:05.826Z (12 months ago)
- Topics: logger, logging, logs
- Language: TypeScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)