fastest.logger.logger   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
import coloredlogs, logging
2
3
# Create a logger object.
4
logger = logging.getLogger(__name__)
5
6
# By default the install() function installs a handler on the root logger,
7
# this means that log messages from your code and log messages from the
8
# libraries that you use will all show up on the terminal.
9
coloredlogs.install(fmt='%(hostname)s %(asctime)s %(levelname)s %(message)s', level='DEBUG', logger=logger)
10