You can easily view the log
logbook.py
# -*- coding: utf-8 -*-
from logbook import Logger, StreamHandler
import sys
StreamHandler(sys.stdout).push_application()
log = Logger('My Awesome Logger')
log.warn('This is too cool for stdlib')
# [2016-06-16 01:23:54.994000] WARNING: My Awesome Logger: This is too cool for stdlib
Recommended Posts