Logging with Winston

I have set up a logging service in my nodejs that logs with Winston, by creating a folder “logs” and creating log files inside of it. My question is, how to access this files and read the logs while in production.

Hi Kristiyan,

My suggestion would be to set Winston up to write to your Syslog: https://github.com/winstonjs/winston-syslog

Then you could configure a Log Stream to save/analyze your logs.

Otherwise, you’d need to ensure you’re writing logs to a Persistent Disk, then you could access them over an SSH connection.

I hope this helps.



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.