Total Complexity | 0 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Changes | 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 |