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 221 views
1 answer 204 views
204 views asked Jun 25, 2018 by avibootz
1 answer 227 views
227 views asked Jun 25, 2018 by avibootz
2 answers 262 views
1 answer 213 views
1 answer 105 views
105 views asked Feb 26, 2023 by avibootz
...