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 201 views
201 views asked Jun 25, 2018 by avibootz
1 answer 217 views
217 views asked Jun 25, 2018 by avibootz
1 answer 224 views
224 views asked Jun 25, 2018 by avibootz
2 answers 260 views
1 answer 210 views
3 answers 213 views
213 views asked Apr 27, 2021 by avibootz
...