1234567891011 |
- require("dotenv").config();
- const log4js = require("log4js");
- log4js.configure({
- appenders: {
- console: { type: "console" }
- },
- categories: {
- default: { appenders: ["console"], level: process.env.LOG_LEVEL || "info" }
- }
- });
- module.exports = log4js.getLogger("console");
|