// Create a stream where the logs will be written const logThrough = new stream.PassThrough(); const log = pino({name: 'project'}, logThrough);
// Log to multiple files using a separate process const child = childProcess.spawn(process.execPath, [ require.resolve('pino-tee'), 'warn', `${logPath}/warn.log`, 'error', `${logPath}/error.log`, 'fatal', `${logPath}/fatal.log` ], {cwd, env});
logThrough.pipe(child.stdin);
// Log pretty messages to console (optional, for development purposes only) const pretty = pino.pretty(); pretty.pipe(process.stdout); logThrough.pipe(pretty);
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!