Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

[FEATURE] Application logging #3482

Closed
eddiejaoude opened this issue Jan 15, 2023 · 5 comments · Fixed by #3558
Closed

[FEATURE] Application logging #3482

eddiejaoude opened this issue Jan 15, 2023 · 5 comments · Fixed by #3558
Assignees
Labels

Comments

@eddiejaoude
Copy link
Member

eddiejaoude commented Jan 15, 2023

Description

We need to decide on how and where to log the application logs

Winston is a popular logging library https://www.npmjs.com/package/winston

NextJS recommend https://www.npmjs.com/package/pino

Screenshots

No response

Additional information

No response

@github-actions
Copy link
Contributor

It's great having you contribute to this project

Welcome to the community 🤓

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.

@gptkrsh
Copy link
Contributor

gptkrsh commented Jan 15, 2023

Winston is cool, but have you had a look at consolajs? I built myself a logger some time ago to streamline the development of my apps, I previously used winston (repo) now I use consola because I find it much better (repo)

@eddiejaoude eddiejaoude self-assigned this Jan 16, 2023
@eddiejaoude
Copy link
Member Author

Thanks for the suggestion 👍 I will take a look.

We also need it to log to a service, so we can have the maintainers view the logs - I will need to do more research

@FrozenHearth
Copy link
Contributor

Related - Can we use a toast message or something similar to show errors? As of now, I see we are using console.log(error) to show errors.

@nanthakumaran-s
Copy link
Member

According to the official docs by Next Js, we can use Pino as the logger for the application's server. This is the example repo - next-pino-logflare-logging-example

image

Or we can have a discussion on the pros and cons of different logging plugins. Can I also work on this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants