Hi Cameron,

On Fri, 15 Aug 2014 13:38:54 +1200
Cameron Kerr <cameron.kerr...@gmail.com> wrote:

> What I would like is to be able to catch errors; the documentation makes to
> mention (that I have seen) of how to go about this. It would be nice to be
> able to instruct nxlog to log the IP address (if applicable) and complete
> message state, for the error.

The current error handling is not flexible enough, this would need a
major overhaul to be able to operate in one of the following modes:
* suppress error , nothing logged,
* continue and log error,
* abort evaluation and log error,
Return codes would allow some of this to be coded manually at the cost of
making the configuration a lot uglier. 
 
> Do parse_json, parse_csv etc. return a value, that can be checked? It would
> be great if this could be documented.

Currently these are procedures. Procedures don't return a value. We'd
need to create a function for each of these that would return a status
code. What would it return, an integer or simply a boolean? And what
about the error message?

Regards,
Botond

------------------------------------------------------------------------------
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to