rgoers edited a comment on issue #275: Log4 j2 2621
URL: https://github.com/apache/logging-log4j2/pull/275#issuecomment-500676166
 
 
   See 
https://github.com/apache/logging-log4j2/blob/LOG4J2-2621/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/processor/PluginProcessor.java
 method writeClassFile at line 161. Note that it also has to create a 
META-INF/services file in writeServiceFile at line 153 to publish it as a 
service for ServiceLoader.
   
   Of the files you noted the core/config visitors classes aren't all that 
interesting. They are basically the same and only exist to support Log4j 2 2.x 
plugins. In fact, only PluginBuilder really changed much. CoreTypeConverters 
was created to encapsulate the type converters that had to stay in core due to 
their dependencies. I did have to change stuff when it moved to the plugin 
module to remove dependencies on core. I did that by passing a Function for 
string substitution instead of passing the StrSubstitutor and Configuration.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to