After some discussion on IRC, here's the mini patch series for adding a
logging API for plug-ins.

Changes from the previous patch:

  * split the changes to error.[ch] into separate patch
  * add a mandatory prefix "PLUGIN <name>: " to each log line
  * never log the instance prefix as it's not thread safe to do so
  * fixed comment for plugin_log() in header file

Heiko Hund (2):
  add x_msg_va() log function
  add plugin_log() API to write to openvpn log

 include/openvpn-plugin.h |   23 +++++++++++++++++++++
 src/openvpn/error.c      |   11 +++++++---
 src/openvpn/error.h      |    2 ++
 src/openvpn/plugin.c     |   51 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 84 insertions(+), 3 deletions(-)

-- 
1.7.9.5


Reply via email to