I am from a Java background. In Java you can print at different levels in most frameworks. For example in log4J, you have log levels which can be set to Debug, Info, warn etc.
Does python have anything similar out of the box? i.e. without having to import another lbrary.
Thanks.
Yep! Have a look at the logging module. Here's a tutorial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With