Function necsim::getGlobalLogger¶
- Defined in File PyLogging.cpp
Function Documentation¶
-
PyLogger *
necsim
::
getGlobalLogger
(PyObject *logger, PyObject *log_function)¶ Generates the global logger object and adds the logger and log functions to the Python logger.
Each call to getGlobalLogger should be matched by a call to removeGlobalLogger
- Return
- the global logger object as a pointer.
- Parameters
logger
: the Python logger object to uselog_function
: the Python logging function to use