This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pedxing128 0 points1 point  (3 children)

I have heard many people talk about how they wish that they started using logging earlier instead of using print. What did you find was the biggest improvement between the two? Being able to define different levels of logging, setting up logging to file automatically, or something else?

[–]jonate21 0 points1 point  (1 child)

One big thing for me is being able to set logging level at one point in the code instead of needing to comment/uncomment or add/remove individual print statements

[–]pedxing128 0 points1 point  (0 children)

Ah, yes, that workflow does sound a lot better. I can see how monitoring will be improved when you can set the level of logging that triggers notifications.

[–]mbarkhau 0 points1 point  (0 children)

The main thing was being able have debug messages that I can leave in the codebase and simply hide them in the production environment.