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 218 views
1 answer 201 views
201 views asked Jun 25, 2018 by avibootz
1 answer 224 views
224 views asked Jun 25, 2018 by avibootz
2 answers 261 views
1 answer 211 views
1 answer 101 views
101 views asked Feb 26, 2023 by avibootz
...