From 1e9fc7e8261d1ab7c8e4fc7b810be1197c5fef99 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 31 Mar 2018 06:05:41 +0000 Subject: [PATCH] britney: Log to stdout by default Signed-off-by: Niels Thykier --- britney.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/britney.py b/britney.py index 92f15be..8d426d4 100755 --- a/britney.py +++ b/britney.py @@ -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()