We have a custom logger created with winston npm for our nodejs applications. In this custom logger, we will create a logging location with the following piece of code.
const LOG_LOCATION = `${__dirname}/../logs`;
if (!fs.existsSync(LOG_LOCATION)) {
fs.mkdirSync(LOG_LOCATION);
}
I'm just wondering whether the log location creation will work in a server-less environment (lambda)?
Thanks,