log4js-node
log4js-node copied to clipboard
os.EOL should be tested before being returned.
If we are using log4js inside a browser, os.EOL is undefined.
therefore, I would recommend the following line: https://github.com/log4js-node/log4js-node/blob/bd457888eb91b9e932fe8f66d720cf2d9d6442f4/lib/layouts.js#L225
should be:
return os.EOL?os.EOL:'\n';