Next.js Discord

Discord Forum

logging

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
i want to create a log system for nextjs app router i don't want to use any paid service i want to log the frontend errors along with the api call and frontend url

9 Replies

@Northeast Congo Lion i want to create a log system for nextjs app router i don't want to use any paid service i want to log the frontend errors along with the api call and frontend url
you can use axiom. It has a huge free plan (you want free) and you can easily log everything, that you want to log. Take a look here: https://axiom.co/
Northeast Congo LionOP
@B33fb0n3 i want to do logging my self i want a method to do it myself
this repo has a package which adds logging for a nextjs application
clone it and update the code to send logs to your server
@Northeast Congo Lion <@301376057326567425> i want to do logging my self i want a method to do it myself
then you might want to rent a vps, that writes the log files in the storage of you vps. Also make sure to not have any vulnabilites... wouldn't be that great, that external people can see your logs. So make sure you invest in security stuff if you want to do logging youself
Northeast Congo LionOP
@@ts-ignore is there a way to do it for free without using any other servide like axiom or flytrap logs
@Northeast Congo Lion <@510480545160101898> is there a way to do it for free without using any other servide like axiom or flytrap logs
you need to write the whole logging thing on your own and then also save it in your db
then also a dashboard to show those logs and other tools to query them