[logback-user] Custom Appender Configuration using generic Properties
John Page
JohnPage at technotects.com
Thu Jul 28 19:53:25 UTC 2016
Ceki,
Thanks for your reply. In your email you wrote:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"The second form would work just fine as long as "thisPropertyName" has a
setter."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I realize each property could be configured by name, but the underlying library is deep and complex. It currently has 49 optional properties. It would require a significant amount of work to add the required setters to the Custom Appender. It would require even more work to maintain the Appender as the underlying library evolves and changes. By providing a "pass-through' Properties configuration, the custom appender will have a long life on Github with less maintenance required. Instead of using the appender documentation, developers can simply refer to the configuration guide provided by the underlying library. The Appender will simply pass the configured properties through to the underlying library.
Cheers,
John Page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20160728/ed9a69fb/attachment.html>
More information about the logback-user
mailing list