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.

Suggestion/request: Documentation/tutorial for beginners

See original GitHub issue

I came across loguru today, but even as a moderately experienced python developer, I find it hard to pick up loguru using the documentation. Current documentation appears to be targeted towards people with experience in logging module. It lists all features that are provided by loguru, but it doesn’t show what is needed to get going for beginners. I looked up for tutorial, but haven’t found one yet.

If there is a tutorial elsewhere, please let me know. With the assumption that not one is available yet, I would like to suggest following improvements in Readme:

  • Example script showing minimal loguru setup and may be few more examples showcasing other basic but major features
  • Levels available (info, warning, etc) and their uses. Unless one has experience with logging, it would be hard to know about their availability and understand their usage.
  • Minimal python version needed

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Delgancommented, Apr 12, 2019

So, I tried to improve the documentation as you suggested:

Thanks for yours suggestions @ManavalanG! I hope this may answer some beginners questions about Loguru and logging in general.

2reactions
Delgancommented, Mar 28, 2019

Thanks for your elaborated feedback!

I don’t know if you saw it (it’s not yet on the stable branch), but there is also this page on the Loguru documentation: Switching from standard logging to loguru I guess I could clarify what are the fundamental difference between standard logging and loguru, and how they relate to each other. Either by adding a new section or by extanding existing ones. In addition to other explanations in the logger docstrings and a link to a logging guide, I hope this should ease first steps with Loguru.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Step 4: Request example (API reference tutorial)
The request example includes a sample request using the endpoint, showing some parameters configured. The request example usually doesn't ...
Read more >
Suggest changes - GitLab Docs
This action generates a commit in the merge request, authored by the user that suggested the changes. Choose a line of code to...
Read more >
APIs for Beginners - How to use an API (Full Course / Tutorial)
What is an API? Learn all about APIs (Application Programming Interfaces) in this full tutorial for beginners. You will learn what APIs do, ......
Read more >
Suggest edits in Google Docs - Computer
Suggest changes to a file · At the top right, click Editing edit and then from the drop-down, select Suggesting add suggestion ....
Read more >
Incorporating feedback in your pull request - GitHub Docs
When reviewers suggest changes in a pull request, you can automatically incorporate the changes into the pull request or open an issue to...
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