I want to display the file Name in the log statement
问题 For every logger statement with any level, I need to display the file name from where the log statement executed, below is the illustration I given below: Example : Below is the line executed from JobWork.js logger.info("getInCompleteJobs in job works"); Actual : 2012-11-05T06:07:19.158Z - info: getInCompleteJobs in job works Required : 2012-11-05T06:07:19.158Z - info JobWork.js : getInCompleteJobs in job works Without passing the fileName as a parameter from the log statement it should give