Loggers specify what log messages they want to receive during registration.
authorTobias Brunner <tobias@strongswan.org>
Mon, 23 Jan 2012 12:51:21 +0000 (13:51 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 2 May 2012 12:45:38 +0000 (14:45 +0200)
commitead92870b8645af72fae75b7f5c0c3475b327380
tree8f4410ee338a64f5e69352513d5aab8fd49c7065
parentd724fcd6240b56359fede1ff6ecd7f0c576dbd0d
Loggers specify what log messages they want to receive during registration.

This also allows us to generate the log message only once for all
loggers that need it (avoids calls to custom printf specifier callbacks).

To update the log levels loggers can simply be registered again.
14 files changed:
src/charon/charon.c
src/libcharon/bus/bus.c
src/libcharon/bus/bus.h
src/libcharon/bus/listeners/file_logger.c
src/libcharon/bus/listeners/logger.h
src/libcharon/bus/listeners/sys_logger.c
src/libcharon/control/controller.c
src/libcharon/control/controller.h
src/libcharon/plugins/android/android_logger.c
src/libcharon/plugins/smp/smp.c
src/libcharon/plugins/sql/sql_logger.c
src/libcharon/plugins/stroke/stroke_control.c
src/libcharon/plugins/stroke/stroke_socket.c
src/libcharon/processing/jobs/initiate_mediation_job.c