Fastify writes logs to a Syslog file.

https://www.photopea.com/

Why do we need logs:

Fastify with logger.

Create a project

$ mdkir fastify-pino-logs
$ cd fastify-pino-logs
$ npm init -y
$ npm install fastify pino@next
https://carbon.now.sh
https://carbon.now.sh
$ node index.js
Screenshot
$ sudo su
Screenshot
$ tail /var/log/syslog -f

--

--

--

Software developer / JavaScript / React / React Native / Firebase / Node.js / C Programming / Book Reader / Story Teller

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Application Frameworks Blog Article 03

React Native: The Quickest Way to Use Any Native iOS or Android Library

Prototyping with Nuxt, Vue & Surge

Promises, Promises

Using JSX with Vue.js and TypeScript

Price TRX on 01 JAN 2025

Mistakes to be Avoided while Developing Apps with Angular!

Creating Invoices in Node.js

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Edison Devadoss

Edison Devadoss

Software developer / JavaScript / React / React Native / Firebase / Node.js / C Programming / Book Reader / Story Teller

More from Medium

Adding external library in draw.io

How I added Password Resets to my App without requiring Personal Data

Accessing LAN Servers Over the Internet with ZeroTier without a Public IP

Installing Homebrew without admin privileges