cdn/logger.js
Tom (Whity) 09441c495b Codebase Rewrite – Slack Bot, Backblaze B2 Migration, API v3
This update is a full rewrite of the codebase with major improvements 💪 :

- Slack Bot Integration – Added now built-in Slack bot!
- Backblaze B2 Migration – Switched from Vercel to B2, cutting storage / egress costs by around 90%.
- API v3 – New version includes file hashes, sizes, and additional metadata.
- API Token Requirement – ⚠️ All older API versions (v1, v2) now require authentication tokens. ⚠️

-- Deployor 💜
2025-01-18 03:49:27 +01:00

9 lines
No EOL
263 B
JavaScript

const winston = require('winston');
const logger = winston.createLogger({
level: 'info',
format: winston.format.combine(winston.format.colorize(), winston.format.simple()),
transports: [new winston.transports.Console()],
});
module.exports = logger;