
##__________________________________________________________________||
try:
    ## https://root-forum.cern.ch/t/pyroot-hijacks-help/15207
    import ROOT
    ROOT.PyConfig.IgnoreCommandLineOptions = True
except ImportError:
    pass

##__________________________________________________________________||

from . import binning
from . import collector
from . import concurrently
from . import configure
from . import roottree
from . import selection
from . import heppyresult
from . import datasetloop
from . import loop
from . import parallel
from . import progressbar
from . import summary
from . import delphes
from . import cmsedm
from .misc import mkdir_p
from .misc import list_to_aligned_text
from .misc import quote_string

# to be deleted
from .misc import listToAlignedText

##__________________________________________________________________||
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.ERROR) # DEBUG INFO WARN ERROR CRITICAL
log_handler = logging.StreamHandler()
log_formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
log_handler.setFormatter(log_formatter)
logger.addHandler(log_handler)

##__________________________________________________________________||

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

@@ -902,16 +902,18 @@
 name__)%0A
+# 
 logger.s
@@ -968,20 +968,44 @@
 RITICAL%0A
-log_
+if not logger.handlers:%0A    
 handler 
@@ -1030,20 +1030,20 @@
 ndler()%0A
-log_
+    
 formatte
@@ -1120,20 +1120,20 @@
 age)s')%0A
-log_
+    
 handler.
@@ -1145,20 +1145,16 @@
 rmatter(
-log_
 formatte
@@ -1156,16 +1156,20 @@
 matter)%0A
+    
 logger.a
@@ -1182,20 +1182,16 @@
 ler(
-log_
 handler)
 %0A%0A##
@@ -1186,16 +1186,61 @@
 handler)
+%0A    del handler%0A    del formatter%0Adel logger
 %0A%0A##____

stop setting log level, add handler only when no handler is set