Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
org.apache.log4j.net.SocketAppenderがレイアウトを使用していないことを読みました。しかし、私は本当にログをフォーマットする必要があり、ConversionPatternを使用する必要があります。誰かがこれに代わるものを知っていますか?ある種のSocketAppenderを使用する必要があります。
ありがとう
SocketAppenderを介して送信されるログはシリアル化され、逆シリアル化されるまでレイアウトを指定できません。リモートホストでは、すべて同じ情報にアクセスでき、ログが印刷されるレイアウトを指定できるはずです。したがって、違いは、反対側でレイアウトを指定することだけです。