How to print info log message in Python

1 Answer

0 votes
import logging

logging.basicConfig(level=logging.INFO)
logging.info('info text')

 
'''
run:
  
INFO:root:info text

'''

 



answered Jun 25, 2018 by avibootz

Related questions

1 answer 211 views
1 answer 196 views
196 views asked Jun 25, 2018 by avibootz
1 answer 220 views
220 views asked Jun 25, 2018 by avibootz
2 answers 256 views
1 answer 201 views
1 answer 95 views
95 views asked Feb 26, 2023 by avibootz
...