On Thu, Sep 26, 2013 at 12:36 PM, Rainer Gerhards
<[email protected]>wrote:

>
> On Tue, Sep 24, 2013 at 8:00 PM, David Lang <[email protected]> wrote:
>
>> Rainer, is there an example of a simple module being converted to the new
>> config syntax?
>>
>> I'm thinking that it would be useful to start collecting examples of
>> commits that do fairly simple things as documentation for programmers
>> trying to create/improve modules
>>
>> a few of simple ones to start off with:
>>
>> 1. add a config parameter (I think I can dig this up from the imfile
>> changes where we implemented the multi-line mode)
>>
>
> I'll see if I can dig out something. But usually, there is more in a
> single commit - because new params get added for new functionality and so
> this is always intermixed.
>
>

the perfect sample just came along. How about this:

http://www.rsyslog.com/dev-how-to-add-a-module-global-parameter/

Side-note: I also think that these module defaults can help make the action
itself much more readable.

Rainer
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to