Implement logging throughout the project
See original GitHub issueRequirement
Use the default Python logging
library to implement logging capability throughout the project
Pre-requisite
- Elementary knowledge of Python
Dependencies
None
Description
- Replace print statements (even the ones in comments) to DEBUG logs and add the capability to set the logging level to DEBUG when trying to debug the code.
- Also, add DEBUG logs for every method initialisation and exit.
- The DEBUG logging level should be set in
config.py
and reflect in the complete project.
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (15 by maintainers)
Top Results From Across the Web
Implement Logging and Reporting Best Practices. - ITNEXT
Reports display information in a clear form for both testers and project managers. You can attach screenshots, logs, and any other files to...
Read more >Why and How to Set Up Logging for Python Projects
Python's logging library is very powerful but generally under-utilised in data ... It's easy to implement with no boilerplate code and doesn't require ......
Read more >How to Implement Logging in Your Python Application
Enter Python's Logging Module · Automatically add context, such as line number and timestamps to logs. · It's possible to update our logger...
Read more >How to Implement Logger in Python | Analytics Vidhya - Medium
Logger implementation in Python: ... Logging is a means of tracking events that happen when some software runs.The software's developer adds ...
Read more >Python Logging: A Stroll Through the Source Code
In this step-by-step tutorial, you'll learn about how the Python logging package is ... which Logger and Handler implement in slightly different ways....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Pihu1998, @janakrajchadha response is the way to go, let us know if you still face difficulties.
@Pihu1998 The issue you are facing is that you’re trying to push to the default branch for the repository. You need to push these changes to your branch in your fork of the project on GitHub and then open a PR to merge it into
gssoc-master
.Please refer to these links for more info on this- https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/proposing-changes-to-your-work-with-pull-requests https://gist.github.com/Chaser324/ce0505fbed06b947d962