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 196 views
196 views asked Jun 25, 2018 by avibootz
1 answer 208 views
208 views asked Jun 25, 2018 by avibootz
1 answer 221 views
221 views asked Jun 25, 2018 by avibootz
2 answers 257 views
1 answer 202 views
2 answers 322 views
...