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 204 views
204 views asked Jun 25, 2018 by avibootz
1 answer 221 views
221 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
3 answers 216 views
216 views asked Apr 27, 2021 by avibootz
...