ppkarwasz commented on issue #1508:
URL: 
https://github.com/apache/logging-log4j2/issues/1508#issuecomment-1596706953

   I would model this feature after 
[`ConfigurationFactory`](https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/config/ConfigurationFactory.html).
 Each `CompressActionFactory` would declare the supported compression methods 
through a `getSupportedTypes()` method and each factory would have a priority 
value.
   
   Currently we would only need two `CompressActionFactory` plugins:
    * one that only depends on `java.base` for `*.zip` and `*.gz`,
    * one that depends on `commons-compress` and find out the available 
compression methods dynamically using 
[`CompressStreamFactory#findAvailableCompressorOutputStreamProviders`](https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/CompressorStreamFactory.html#findAvailableCompressorOutputStreamProviders--).
 We could move this factory to a separate `log4j-commons-compress` artifact.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to