GitHub user paladox added a comment to the discussion: Help with migrating from log4j to log4j2 (we also use a slf4j -> log4j)
@ppkarwasz do you know why the following won't work properly: https://gist.github.com/paladox/149db37be61a1f0f412b96d7c140a18e. It causes `[2025-09-06 20:09:22,346] [sshd-SshDaemon[1c5fc](port=22)-nio2-thread-5] WARN org.apache.sshd.server.session.ServerUserAuthService []: handleUserAuthRequestMessage(ServerSessionImpl[null@/[0:0:0:0:0:0:0:1]:56951]) Failed (IllegalStateException) to authenticate using factory method=publickey: AsyncAppender SshAsync is not active` which I traced to ` void onLogin() { Log4jLogEvent entry = log("LOGIN FROM " + session.get().getRemoteAddressAsString()); if (async != null) async.append(entry); audit(context.get(), "0", "LOGIN"); }` but all of them return that anyways. It's just that function that now prevents ssh. The original code is https://github.com/GerritCodeReview/gerrit/blob/master/java/com/google/gerrit/sshd/SshLog.java. GitHub link: https://github.com/apache/logging-log4j2/discussions/3914#discussioncomment-14328518 ---- This is an automatically sent email for dev@logging.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org