logging.logger
import logging
logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.debug("some debugging...")
logger.error("some error...")#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)
logger.debug('Loging %s lewel', 'DEBUG')
logger.info('Loging %s lewel', 'INFO')
logger.warning('Loging %s lewel', 'WARN')
logger.error('Loging %s lewel', 'ERROR')
logger.critical('Loging %s lewel', 'CRITICAL')
Also in C:
- c print hello world
- what is constructor
- error: dereferencing pointer to incomplete type
- find factoril in C using recursion
- factorial of a given number in c
- 1 212 32123 4321234 543212345 in c
- how to add user to role postgresql
- how to make two arrays equal in c
- pow() c
- pip install sklearn specific version
- docker-compose file break line
- turn a char array into double C
- arduino keypad wait for key
- android is not recognized
- linux kernel write()
- PS1 modified lags
- How to setup a line length marker in vim
- even odd c
- print hello world in c
- actionbar content color in android
- angle between two points
- insert image material ui
- How to pass a struct value to a pthread in c?
- read file in C