GitHub user paladox edited a comment on the discussion: Help with migrating 
from log4j to log4j2 (we also use a slf4j -> log4j)

@ppkarwasz how would I move this to using the logger instead of appender (if 
things will work with reconfigure())? And how would I get it to still use 
AsyncAppender rather how can I rewrite this (and how do I get logger to log to 
sshd_log rather than to both that and error_log)? I have another use case that 
does things dynamically: 
https://gist.github.com/paladox/2a8cc90bfff35639f2319a4101db2e27 (original 
code: 
https://github.com/GerritCodeReview/gerrit/blob/master/java/com/google/gerrit/server/util/PluginLogFile.java)
 

GitHub link: 
https://github.com/apache/logging-log4j2/discussions/3914#discussioncomment-14340985

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

Reply via email to