17#ifndef ROOTUTILS_PYLOGGER_H
18#define ROOTUTILS_PYLOGGER_H
22# undef _POSIX_C_SOURCE
58 virtual void debug (
const char*
msg);
65 virtual void error (
const char*
msg);
Very simple interface for writing log messages.
Very simple interface for writing log messages.
PyObject * m_errorfn
The error message function.
PyLogger(PyObject *debugfn, PyObject *errorfn)
Constructor.
static void call(PyObject *fn, const char *msg)
Common code to call Python callback.
PyObject * m_debugfn
The debug message function.