GitHub user rm5248 added a comment to the discussion: Next Log4cxx Major 
release thoughts

I've come across an issue today where it may make sense for me to implement a 
new appender that is HTTP-based.  APR doesn't have any HTTP components, so 
doing this natively in log4cxx would require an additional dependency(e.g. 
curl).  I don't want to add another dependency(it should be optional), but is 
there a good way to handle this?  ideas:

1. Build into log4cxx library as optional dependency.  This is how everything 
is handled today.
2. Create a plugin-based architecture so that we can have different logging 
plugins with different dependencies.
3. Create my own appender that is not part of log4cxx.  This is the simplest 
thing to do and should always work, but it would be good to put this upstream.

I ask because if this is something that we want for the next major version, 
option 2 would be the most flexible but it would also take some time to 
implement.  I don't like option 1 because then if we want to add something new 
the entire library needs to be recompiled, and this could lead to dependency 
hell.

GitHub link: 
https://github.com/apache/logging-log4cxx/discussions/519#discussioncomment-18506721

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to