syslog-ng source
python-logger.c File Reference
#include "python-logger.h"
#include "python-helpers.h"
#include "messages.h"
Include dependency graph for python-logger.c:

Functions

PyObject * py_msg_error (PyObject *obj, PyObject *args)
 
PyObject * py_msg_warning (PyObject *obj, PyObject *args)
 
PyObject * py_msg_info (PyObject *obj, PyObject *args)
 
PyObject * py_msg_debug (PyObject *obj, PyObject *args)
 
PyObject * py_msg_trace (PyObject *obj, PyObject *args)
 
void py_logger_global_init (void)
 

Variables

PyTypeObject py_logger_type
 

Function Documentation

◆ py_logger_global_init()

void py_logger_global_init ( void  )

◆ py_msg_debug()

PyObject* py_msg_debug ( PyObject *  obj,
PyObject *  args 
)

◆ py_msg_error()

PyObject* py_msg_error ( PyObject *  obj,
PyObject *  args 
)

◆ py_msg_info()

PyObject* py_msg_info ( PyObject *  obj,
PyObject *  args 
)

◆ py_msg_trace()

PyObject* py_msg_trace ( PyObject *  obj,
PyObject *  args 
)

◆ py_msg_warning()

PyObject* py_msg_warning ( PyObject *  obj,
PyObject *  args 
)

Variable Documentation

◆ py_logger_type

PyTypeObject py_logger_type
Initial value:
=
{
PyVarObject_HEAD_INIT(&PyType_Type, 0)
.tp_basicsize = sizeof(PyObject),
.tp_dealloc = py_slng_generic_dealloc,
.tp_doc = "Those messages can be captured by internal() source.",
.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
.tp_methods = py_logger_methods,
.tp_name = "Logger",
.tp_new = PyType_GenericNew,
0
}
void py_slng_generic_dealloc(PyObject *self)
Definition: python-helpers.c:461