Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否建议在我的 nodejs 应用程序中登录 2 个 log4js。
记录器 A(标准记录器)到文件 A:
记录器 B(性能记录器)到文件 B:
两个记录器都记录到 2 个不同的文件。
我只会集成一次并实现以下逻辑:
在代码中使用
logger.debug('Performance info'); logger.info('Print out / Info'); logger.warn('Warning'); logger.error('Error');
debug
info
warn