I am finding trouble using log4js-protractor-appender

前端 未结 2 1403
广开言路
广开言路 2021-01-20 04:44

My log4js.js file code

\'use strict\';
var log4js = require(\'log4js\');
var log4jsGen = {
    getLogger: function getLogger() {
        log4js.loadAppender(         


        
2条回答
  •  Happy的楠姐
    2021-01-20 04:57

    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

提交回复
热议问题