I hope this will be an easy one… but I can’t put my finger on the problem…
I’ve been trying for a while to make a log file of a few things on my glitch.
I’ve had a bug that needed some logging but could never figure out how to do it.Whatever this is irrelevant Cause I found the bug, but I would still love to understand how to:
- Create a file
- Log with timestamp in the file
I’ve tried a few options… I can trap the log on my console, but it doesn’t Output to a file.
I’ve tried the simple winston, work in console but doesn’t create a file…
Even just this on a new glitch Express doesn’t create the file.
Can anyone point me into the right direction?
And in the end I would love to make a Daily rotation of the file (winston-daily-rotate-file will probably be my next ting if I can create a file)