jsnlog icon indicating copy to clipboard operation
jsnlog copied to clipboard

batchSize without having to configure ajaxAppender

Open drmorale opened this issue 10 years ago • 3 comments

We would like to be able to configure batchSize without having to add an ajaxAppender xml node (ie onto the default appender).

drmorale avatar Oct 28 '15 20:10 drmorale

Thanks for your suggestion. I would agree it would be nice to have this, so I've marked it as an enhancement. However, to me it doesn't have high priority.

mperdeck avatar Oct 31 '15 03:10 mperdeck

I'll take care of it! Let me know if there's a direction you can point me in!

drmorale avatar Nov 05 '15 19:11 drmorale

I guess you're after a syntax like this:

To be honest, I'm a bit dubious about this:

  1. I'm not sure about the business value. I would agree that it is a bit of a pain to have to create a new appender if you want a non-default batchSize or Url, or whatever, but it is not that hard (create appender, assign to root logger so all loggers pick it up).

<ajaxAppender name="appender1" bufferSize="20"/>

  1. It is a relatively big change, in that when you define an appender, in the current implementation you actually create a new appender, while you want to modify an existing appender.

Big change = big risk. Plus backwards compatibility is really very important to me.

However, I do have an open mind on this. If you find a low risk way of implementing this feature, please let me know.

mperdeck avatar Nov 06 '15 13:11 mperdeck