import logging
def createLogger():
logger = logging.getLogger(__name__)
-# logger.setLevel(logging.DEBUG)
- logger.setLevel(logging.INFO)
+ logger.setLevel(logging.DEBUG)
+ #logger.setLevel(logging.INFO)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
- formatter = logging.Formatter("%(levelname)s:%(threadName)s:%(message)s")
+ formatter = logging.Formatter("%(levelname)s:%(threadName)s:%(pathname)s[%(lineno)s]%(message)s")
ch.setFormatter(formatter)
logger.addHandler(ch)
return logger
//============================================================================
void SALOMEDSImpl_Study::Clear()
{
- delete _builder;
- delete _cb;
- delete _useCaseBuilder;
+ if (_builder) delete _builder;
+ _builder = NULL;
+ if (_cb) delete _cb;
+ _cb = NULL;
+ if (_useCaseBuilder) delete _useCaseBuilder;
+ _useCaseBuilder = NULL;
URL("");
_appli->Close(_doc);
_doc = NULL;