logging - Printing at different levels in Python -



logging - Printing at different levels in Python -

i java background. in java can print @ different levels in frameworks. illustration in log4j, have log levels can set debug, info, warn etc.

does python have similar out of box? i.e. without having import lbrary.

thanks.

yep! have @ logging module. here's tutorial.

python logging

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -