mirror of https://github.com/nucypher/nucypher.git
11 lines
286 B
Python
11 lines
286 B
Python
import logging
|
|
import sys
|
|
|
|
root = logging.getLogger()
|
|
root.setLevel(logging.WARNING)
|
|
|
|
ch = logging.StreamHandler(sys.stdout)
|
|
ch.setLevel(logging.WARNING)
|
|
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
|
ch.setFormatter(formatter)
|
|
root.addHandler(ch) |