Skip to content

Commit a2f3c03

Browse files
committed
DDSim: make logging go to stdout, tweak output format
1 parent 14c082a commit a2f3c03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DDG4/python/DDSim/bin/ddsim.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"""
1010
from __future__ import absolute_import, unicode_literals
1111
import logging
12+
import sys
1213

1314
from DDSim.DD4hepSimulation import DD4hepSimulation
1415

1516

1617
if __name__ == "__main__":
17-
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
18+
logging.basicConfig(format='%(name)-16s %(levelname)s %(message)s', level=logging.INFO, stream=sys.stdout)
1819
logger = logging.getLogger('DDSim')
1920

2021
RUNNER = DD4hepSimulation()

0 commit comments

Comments
 (0)