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

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

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