How to print critical log message in Python

1 Answer

0 votes
import logging

logging.basicConfig(level=logging.CRITICAL)
logging.critical('critical text')

 
'''
run:
  
CRITICAL:root:critical text

'''

 



answered Jun 25, 2018 by avibootz

Related questions

1 answer 306 views
306 views asked Jun 25, 2018 by avibootz
1 answer 316 views
316 views asked Jun 25, 2018 by avibootz
1 answer 312 views
312 views asked Jun 25, 2018 by avibootz
2 answers 382 views
1 answer 303 views
3 answers 356 views
356 views asked Apr 27, 2021 by avibootz
...