question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement logging throughout the project

See original GitHub issue

Requirement

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:closed
  • Created 4 years ago
  • Comments:22 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
vishakha-lallcommented, Mar 5, 2020

@Pihu1998, @janakrajchadha response is the way to go, let us know if you still face difficulties.

1reaction
janakrajchadhacommented, Mar 5, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found