From a2f3c03d74f27e24fa8b4a1b8b7478ae654d8a35 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 14 Sep 2020 17:57:35 +0200
Subject: [PATCH] DDSim: make logging go to stdout, tweak output format

---
 DDG4/python/DDSim/bin/ddsim.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/DDG4/python/DDSim/bin/ddsim.py b/DDG4/python/DDSim/bin/ddsim.py
index bb5253188..20b9b5284 100755
--- a/DDG4/python/DDSim/bin/ddsim.py
+++ b/DDG4/python/DDSim/bin/ddsim.py
@@ -9,12 +9,13 @@ Based on M. Frank and F. Gaede runSim.py
 """
 from __future__ import absolute_import, unicode_literals
 import logging
+import sys
 
 from DDSim.DD4hepSimulation import DD4hepSimulation
 
 
 if __name__ == "__main__":
-  logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
+  logging.basicConfig(format='%(name)-16s %(levelname)s %(message)s', level=logging.INFO, stream=sys.stdout)
   logger = logging.getLogger('DDSim')
 
   RUNNER = DD4hepSimulation()
-- 
GitLab