[strongSwan] How to change group names in syslog
tobias at strongswan.org
Thu Apr 19 08:52:10 CEST 2012
> Initially I thought I could just change the debug_names values in
> src/libstrongswan/debug.c to add the suffix, but that didn't seem to
> have any effect. I see that some code actually limits group name
> string length to 4 (including NULL).
Both of these observations are true. The log messages are eventually
logged by listeners registered on the global message bus. For logging
to syslog this is src/libcharon/bus/listeners/sys_logger.c and for
logging to files it's file_logger.c in the same directory. There are
other loggers in individual plugins. Of the two loggers above only the
syslogger limits the group string to 4 characters, so increasing the
buffer there should allow you to see the longer group names.
> Do you know if there is an easy change to add a suffix like "-MS" to
> all group names?
Just out of curiosity, what's the reason you want to change these in the
More information about the Users