In the previous chapters we learnt how to define sources, filters and destinations. We'll need to connect those together, which is accomplished by the log statement. Any message coming from one of the listed sources, matching the filters (each of them) are sent to the listed destinations. The needed syntax is here:
log { source(s1); source(s2); ... filter(f1); filter(f2); ... destination(d1); destination(d2); ... }; |
Members on the logpath are evaluated in order, e.g. the only filter invokations applied to a source are those which are after the source reference.