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-8fceda92-2ca9-48c8-84c4-a152cd98fefc__30027.7739575662$1757186056$gmane$org@gitbox.apache.org>
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 [email protected].
To unsubscribe, please send an email to: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.