How to use the shutdown function from log4js
Find comprehensive JavaScript log4js.shutdown code examples handpicked from public code repositorys.
GitHub: ONLYOFFICE/server
92 93 94 95 96 97 98
}; exports.fatal = function (){ return logger.fatal.apply(logger, Array.prototype.slice.call(arguments)); }; exports.shutdown = function (callback) { return log4js.shutdown(callback); };
182
152
33
+ 3 other calls in file
GitHub: vti/elemntary
281 282 283 284 285 286 287 288 289 290 291 292 293
const cleanup = () => { log.info("Shutting down..."); storeSettings(); log4js.shutdown(); }; let win;
2
15
0
GitHub: hubrixco/logjack
31 32 33 34 35 36 37 38 39 40
get logger(){ return this.baseLogger; } shutdown(){ log4js.shutdown(this.postShutdown()); } postShutdown(){ ; }
2
15
4
GitHub: konser80/tools
62 63 64 65 66 67 68 69 70 71 72
console.log = (msg) => logger.trace(msg); console.info = (msg) => logger.debug(msg); console.warn = (msg) => logger.warn(msg); console.error = (msg) => logger.error(msg); logger.shutdown = log4js.shutdown; return logger; } // ============================================== function configureConsole() {
0
0
0
44 45 46 47 48 49 50 51
}, }; module.exports = { logger, log4js, // 同时导出实例,可通过 log4js.shutdown() 关闭日志 };
0
0
0
log4js.getLogger is the most popular function in log4js (529 examples)