Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to print logs locally? #242

Open
niyonx opened this issue Oct 9, 2024 · 3 comments
Open

How to print logs locally? #242

niyonx opened this issue Oct 9, 2024 · 3 comments

Comments

@niyonx
Copy link

niyonx commented Oct 9, 2024

I still want logs to show in terminal locally

@adelrodriguez
Copy link

In my experience, if you're using Logger manually instead of the Log Drain, you can omit the NEXT_PUBLIC_AXIOM_DATASET and logs will show in local development.

@travistylervii
Copy link

For dev environments I just print locally and do a NODE_ENV === 'production' conditional.

If prod, send to axiom, else send to console.

@dasfmi
Copy link
Collaborator

dasfmi commented Dec 17, 2024

I still want logs to show in terminal locally

Can you elaborate a lot more, do you want to send to Axiom and print to console as well?

The current mechanism prints to console of no credentials are available in the environment variables. Is that what you are looking for?

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

No branches or pull requests

4 participants