britney: Log to stdout by default

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 7 years ago
parent e441902d92
commit 1e9fc7e826

@ -275,8 +275,11 @@ class Britney(object):
return record
logging.setLogRecordFactory(record_factory)
logging.basicConfig(format='{shortlevelname}: [{asctime}] - {message}', style='{',
datefmt="%Y-%m-%dT%H:%M:%S%z")
logging.basicConfig(format='{shortlevelname}: [{asctime}] - {message}',
style='{',
datefmt="%Y-%m-%dT%H:%M:%S%z",
stream=sys.stdout,
)
self.logger = logging.getLogger()

Loading…
Cancel
Save