def _create_logger(name="paraview"): import logging logger = logging.getLogger(name) if not hasattr(logger, "_paraview_initialized"): logger._paraview_initialized = True from paraview.detail import loghandler logger.addHandler(loghandler.VTKHandler()) logger.setLevel(loghandler.get_level()) return logger
def log_level(): """Returns the Python logging level to use to log informative messages from this package""" from paraview.modules.vtkPVVTKExtensionsCore import vtkPVLogger from paraview.detail.loghandler import get_level return get_level(vtkPVLogger.GetCatalystVerbosity())