@busy-hour/blaze
Version:
<h1 align='center'>🔥 Blaze</h1> <div align='center'> An event driven framework for 🔥 Hono.js </div>
23 lines (22 loc) • 612 B
JavaScript
// src/internal/logger/index.ts
import { BlazeError } from "../errors/index.js";
var Logger = class {
static info(...args) {
console.log(`\x1B[0m[Blaze - LOG] `, ...args, "\x1B[0m");
}
static error(...args) {
console.error(`\x1B[31m[Blaze - ERROR] `, ...args, "\x1B[0m");
}
static warn(...args) {
console.warn(`\x1B[33m[Blaze - WARN] `, ...args, "\x1B[0m");
}
static debug(...args) {
console.debug(`\x1B[34m[Blaze - DEBUG] `, ...args, "\x1B[0m");
}
static throw(message) {
return new BlazeError(`\x1B[31m[Blaze - ERROR] ${message}\x1B[0m`, 500);
}
};
export {
Logger
};