Spaces:
Paused
Paused
File size: 473 Bytes
4321cf6 0aa7f4c 4321cf6 0aa7f4c 4321cf6 0aa7f4c 4321cf6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | process.env.TZ = "Europe/Istanbul";
const log4js = require("log4js");
log4js.configure({
appenders: {
console: { type: "console" },
},
categories: {
default: {
appenders: ["console"],
level: "info"
}
},
layouts: {
customLayout: {
type: 'pattern',
pattern: '%d{hh:mm:ss} %-5p %c - %m',
}
}
});
const logger = log4js.getLogger();
module.exports = {
logger
} |