-1

I need to create a file to log errors using react, I was checking some libraries, but those libraries just logs errors in the UI, the thing that I need is create a new file each day, each file will be named with the current date, and it should log all the errors in the day. I don't know if that's possible.

1
  • 2
    Since you mentioned libraries, try Sentry.io. Commented Jan 16, 2019 at 15:08

1 Answer 1

3

You can't log directly to the file system using front-end javascript, instead you could post your logs to a backend server & that inforth will log the message on a file for you.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.