ConnorFTW / discord-bot-creator

Create your Discord bot in less than 30 minutes.
https://discord-bot-creator.app/
Other
20 stars 6 forks source link

Add a logger #10

Closed m5x5 closed 3 years ago

m5x5 commented 3 years ago

To debug errors better in production, we need a logger. It should just put new logs in a local log file.

Tasks

m5x5 commented 3 years ago

@rajoriaakash, you'd need to know about loggers in electron. Not sure if you want to use a module on that, or if you'd go with just writing to a file with fs. It's true that you need to know how the electron paths work in development and production.

Besides, it's just a replacement of console.log calls with your custom function.

I'd be down to explain the stuff to you though if you'd be down to have a call though. Might help us improve the project together to make it easy to understand for everyone.

rajoriaakash commented 3 years ago

Oh, save the trouble. I'll check some documentation online and see if I can get anything. Thanks :)

m5x5 commented 3 years ago

You're welcome! Let me know if I can be helpful somehow

rajoriaakash commented 3 years ago

Sure 😀

m5x5 commented 3 years ago

I'll take this from here, hope it's okay 🙂

rajoriaakash commented 3 years ago

yea no problem obviously :))))

m5x5 commented 3 years ago

Fixed with #25