afstomp: Make it depend on libsyslog-ng.la

For parallel builds, depend on ${MODULE_DEPS_LIBS}, to avoid a race
condition.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
value-pairs: Fix a crash when an invalid scope is specified

Terminate the list of scopes with empty values, so we reach the stop
condition instead of overflowing.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
templates: Initial support for on-error()

This implements low-level support for the on-error() setting, making it
possible to set it globally in options{}, and making inheritance work,
so that it can be overridden later on.

Valid values are: drop-message, drop-property and
fallback-to-string (this latter one is only valid for type hinting,
though!), optionally prefixed by "silently-".

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
value-pairs: Add support for the on-error() setting

value-pairs should implement on-error handling, so make it possible to
configure the behaviour on a per-instance basis. The default value is
inherited from the global setting.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
afmongodb: Add support for acting on type hints

Since we have type hints, we should use them. This patch adds support
for all the type hints known so far (except for default, which is
special), along with support for the on-error() setting.

This fixes one part of #6.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
value-pairs: Implement an --on-error command-line option

To make it easier to set the error handling with the command line
interface, introduce an --on-error option.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
format-json: Support acting on type hints

With this patch, $(format-json) becomes able to act on type hints, and
store ints as ints and so on and so forth. Forthermore, the on-error()
setting is implemented for format-json aswell.

Together with the afmongodb patch, this fixes #6.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>