Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/securesystemslib/__init__.py: 83%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

6 statements  

1import logging 

2 

3__version__ = "1.3.0" 

4 

5# Configure a basic 'securesystemslib' top-level logger with a StreamHandler 

6# (print to console) and the WARNING log level (print messages of type 

7# warning, error or critical). This is similar to what 'logging.basicConfig' 

8# would do with the root logger. All 'securesystemslib.*' loggers default to 

9# this top-level logger and thus may be configured (e.g. formatted, silenced, 

10# etc.) with it. It can be accessed via logging.getLogger('securesystemslib'). 

11logger = logging.getLogger(__name__) 

12logger.setLevel(logging.WARNING) 

13logger.addHandler(logging.StreamHandler())