From: Heiko Hund Date: Wed, 1 Aug 2012 13:37:36 +0200 Message-ID: <1343821058-11456-1-git-send-email-heiko.hund@...1489...> MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH 0/2] Add logging API for plug-ins List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net 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 : " 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