Skip to content

Add logging API for plug-ins

Heiko Hund openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Changes from the previous patch from the cover letter

* 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

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2add x_msg_va() log functionsrc/openvpn/error.c src/openvpn/error.h+10 -31 reply
2/2add plugin_log() API to write to openvpn loginclude/openvpn-plugin.h src/openvpn/plugin.c+74 -00 replies
2/2add plugin_log() API to write to openvpn loginclude/openvpn-plugin.h src/openvpn/plugin.c+74 -03 replies
2/2add plugin_log() API to write to openvpn loginclude/openvpn-plugin.h src/openvpn/plugin.c+103 -10 replies
2/2add plugin_log() API to write to openvpn loginclude/openvpn-plugin.h src/openvpn/plugin.c+75 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/2] Add logging API for plug-ins

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(-)
Signature · 1 line
1.7.9.5