3 ms·
1) Build a proper (local) logging service in your app. With Node.Js I use winstonjs/winston. 2) Use time series databases to log your server metrics. Eg. Influ
by humility 7y ago
1) Build a proper (local) logging service in your app. With Node.Js I use winstonjs/winston.
2) Use time series databases to log your server metrics. Eg. InfluxDB
3) Familiarize yourself with CLI tools like cat, less, tail, grep, sed for when you have to get your hands dirty with raw data.
4) Logrotate is a great choice to cap the size of different program logs.