log.js 295 B

1234567891011
  1. require("dotenv").config();
  2. const log4js = require("log4js");
  3. log4js.configure({
  4. appenders: {
  5. console: { type: "console" }
  6. },
  7. categories: {
  8. default: { appenders: ["console"], level: process.env.LOG_LEVEL || "info" }
  9. }
  10. });
  11. module.exports = log4js.getLogger("console");