https://github.com/furkibuu/aiko_logger
Advanced, colorful logger for Node.js with file rotation, webhook integration and multilingual support (TR/EN)
https://github.com/furkibuu/aiko_logger
console debug discord logger logging nodejs npm-package webhook
Last synced: 1 day ago
JSON representation
Advanced, colorful logger for Node.js with file rotation, webhook integration and multilingual support (TR/EN)
- Host: GitHub
- URL: https://github.com/furkibuu/aiko_logger
- Owner: furkibuu
- License: mit
- Created: 2026-03-18T21:58:15.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-04-16T18:41:11.000Z (3 months ago)
- Last Synced: 2026-04-16T20:30:32.804Z (3 months ago)
- Topics: console, debug, discord, logger, logging, nodejs, npm-package, webhook
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/aiko.logger?activeTab=readme
- Size: 225 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ชต aiko.logger
> โก High-performance, zero-dependency logger for Node.js with JSON
> logging, transports, prefix & webhook support
------------------------------------------------------------------------




------------------------------------------------------------------------
## ๐ Overview
**aiko.logger** is a fast, flexible and production-ready logging library
for Node.js.
- Discord bots ๐ค\
- APIs & backend services ๐\
- CLI tools ๐ฅ๏ธ
Built with **non-blocking async I/O** and **zero dependencies**.
------------------------------------------------------------------------
## โจ Features
- โก Non-blocking async architecture
- ๐จ 7 log levels
- ๐ฆ JSON logging support
- ๐ Custom transports system
- ๐งฉ Prefix (scoped loggers)
- ๐๏ธ Log filtering (`minLevel`)
- ๐ Daily log rotation
- ๐งน Auto cleanup system
- ๐ Discord webhook integration (with embeds)
- ๐ก๏ธ Smart formatting (Object, Array, Error)
- ๐ Auto language detection (TR/EN)
- ๐ TypeScript support
- ๐ Zero dependencies
------------------------------------------------------------------------
## ๐ฆ Installation
``` bash
npm install aiko.logger
```
------------------------------------------------------------------------
## โก Quick Start
``` js
const { Logger } = require('aiko.logger');
const logger = new Logger({
saveToFile: true,
webhookUrl: 'YOUR_WEBHOOK_URL',
prefix: 'App'
});
logger.info('System started');
logger.error('Something went wrong');
```
------------------------------------------------------------------------
## ๐งฉ Prefix & Log Filtering
``` js
const dbLogger = new Logger({ prefix: 'MongoDB' });
dbLogger.info('Connection established.');
const webLogger = new Logger({
prefix: 'Express',
minLevel: 'warn'
});
webLogger.info('This will NOT log');
webLogger.error('Timeout!');
```
------------------------------------------------------------------------
## ๐ฆ JSON Logging
``` js
const logger = new Logger({
format: 'json',
saveToFile: true
});
```
Output:
``` json
{
"timestamp": "2026-01-01T12:00:00.000Z",
"level": "INFO",
"message": "System started",
"prefix": "App"
}
```
------------------------------------------------------------------------
## ๐ Custom Transports
``` js
logger.addTransport((log) => {
console.log("Custom transport:", log);
});
```
------------------------------------------------------------------------
## ๐ Webhook Integration
- Sends logs as **Discord embeds**
- Includes prefix, level and timestamp
------------------------------------------------------------------------
## ๐งน Auto Cleanup
``` js
const logger = new Logger({
saveToFile: true,
keepLogsFor: 7,
autoCleanup: true
});
```
------------------------------------------------------------------------
## โ๏ธ Configuration
```js
Option Description
------------- ---------------------
saveToFile Enable file logging
logFolder Log directory
keepLogsFor Retention days
autoCleanup Delete old logs
webhookUrl Discord webhook
prefix Label logs
minLevel Filter logs
format `text` or `json`
```
------------------------------------------------------------------------
## โ๏ธ Comparison
Feature aiko.logger winston pino
------------------- ------------- --------- ------
Zero dependency โ
โ โ
JSON logging โ
โ
โ
Custom transports โ
โ
โ ๏ธ
Lightweight โ
โ โ
------------------------------------------------------------------------
## ๐ Why aiko.logger?
- No dependencies โ no bloat\
- Clean API โ easy to use\
- Production-ready features
------------------------------------------------------------------------
## โญ Support
Give a โญ if you like it!
------------------------------------------------------------------------
## ๐ License
MIT License