My log4js.js file code
\'use strict\';
var log4js = require(\'log4js\');
var log4jsGen = {
getLogger: function getLogger() {
log4js.loadAppender(
I have check this issue with and followed the steps mentioned in Answer 1 and it works for me.
Earlier I was getting log output in Console only but now I am getting log in console and file also.
I corrected the file path passing and Set type: "file" in log4js configure in conf file.
Log4js in Conf file
Log appender in file
Please let me know if you face any issue again.
Thanks