I want to use winston to create a logfile, but I'm running into issues when I try to create a directory,
If I use an absolutepath, something like
fs.mkdirSync("/absolute/path/to/directory");
The directory is created just fine,
but if I want the directory to be created in the current working directory of the application
fs.mkdirSync("winstonLogs");
Proceeds without error, but no directory is created. How do I create the directory in the current project directory so that wherever my application is deployed it can create its logfiles?
via mstorkson
No comments:
Post a Comment