|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #ifndef ROOTUTILS_PYLOGGER_H
18 #define ROOTUTILS_PYLOGGER_H
21 #ifdef _POSIX_C_SOURCE
22 # undef _POSIX_C_SOURCE
58 virtual void debug (
const char*
msg);
65 virtual void error (
const char*
msg);
90 #endif // not ROOTUTILS_PYLOGGER_H
PyObject * m_debugfn
The debug message function.
A concrete implementation of ILogger that calls back to Python.
PyLogger(PyObject *debugfn, PyObject *errorfn)
Constructor.
virtual void debug(const char *msg)
Log a debugging message.
PyObject * m_errorfn
The error message function.
virtual void error(const char *msg)
Log an error message.
static void call(PyObject *fn, const char *msg)
Common code to call Python callback.
Very simple interface for writing log messages.
Very simple interface for writing log messages.