Re: [D] Help with migrating from log4j to log4j2 (we also use a slf4j -> log4j) [logging-log4j2]
paladox (via GitHub) <[email protected]>
| Newsgroups | gmane.comp.jakarta.log4j.devel |
|---|---|
| Message-ID | <ghd-D_kwDOAKJSSM4AhuMF-c6f1eca3-d81f-4f43-8de0-ba49f07faeda__9040.92815924145$1757342100$gmane$org@gitbox.apache.org> |
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]