-
-
Notifications
You must be signed in to change notification settings - Fork 964
fix Exception Log #108
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
fix Exception Log #108
Conversation
Great! About the logging, are we reducing the logs to just 1 file now? With this logger there will be only 1 file that combine both, yes? The advantage of keeping them separate is that users can simply send us a copy of the exceptions without worrying about sharing private information like bot name or API key, etc. What do you think? |
This class handles log for exception while the request one are still menaged by Request class. |
So you don't think it would make sense to put all logging functionality together into the Logger class? |
In the future only one class will handles all logs i totally agree! |
To me it makes more sense to add a feature when it's thought through more, otherwise it may change again in the next version, which means the user will again need to update their code. It's better to add a "small" feature that works 100% in a separate release, than add bits of it in one and then need to change it again for the next. |
We could exploit monolog to do this. What do you thing @akalongman @noplanman ? |
I think that for the logging that we'd be doing a library like that is overkill. We're just writing to 2 files, right? One for the Telegram responses and cURL logs, and one for the Exceptions. An advantage would be that user commands could also include logging very easily, which may be the case! Hmm, I'm liking the idea of this library more and more as I'm typing this 😄 |
I Hightly recommend use monolog. |
I introduced the logger Class #106 to Handle the path of the exception logs.
Don't want to rewrite log system now just path this bug #96 .
Exception are not stored by default, you can start log then adding:
in your webhook.php or in your getUpdates.php