You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
517 B
15 lines
517 B
from lib import log |
|
from more import more_operations, More |
|
# Utilizzo del logger |
|
logger = log.setup_logger(__name__) |
|
|
|
logger.debug('Questo è un messaggio di debug') |
|
logger.info('Questo è un messaggio informativo') |
|
logger.warning('Questo è un messaggio di avvertimento', extra={'ansia': 'molta'}) |
|
logger.error('Questo è un messaggio di errore', extra={'cause': 'non so'}) |
|
logger.critical('Questo è un messaggio critico', extra={'ansia' :'estrema'}) |
|
|
|
more_operations() |
|
|
|
with More() as more: |
|
more.do_something() |