log4js-node / smtp

SMTP Appender for log4js-node
Apache License 2.0
14 stars 3 forks source link

cat it run in log4js-5.1.0 ? i got follow error #5

Open gsons opened 4 years ago

gsons commented 4 years ago

The "path" argument must be of type string. Received type undefined"

adrian-e commented 3 years ago

I had just the same problem! I had it related to webpack when trying to run the bundle. I had to manually edit log4js/lib/appenders/index.js and add the following line

coreAppenders.set('@log4js-node/smtp', require('../../../@log4js-node/smtp/lib/index'));

After the last appender defined and it worked like a charm!