'Migrating from log4j to log4j2. Equivalent of SocketNode class in log4j2
We are migrating our application from log4j to log4j2 with version 2.17.1. Below is the current code present in application for remote logging.
ServerSocket serverSocket = new serverSocket(port,ip);
Socket lSocket = serverSocket.accept();
socketArrayInUse.add(lSocket);
InetAddress lAddr = lSocket.getInetAddress();
SocketNode lNode = new SocketNode(lSocket, loggerRepo);
String lClientHost = lAddr.getHostName();
SocketThread lThread = new SocketThread(lNode, lClientHost);//thread
lThread.start();
Could not get Equivalent SocketNode class in log4j2. Please let me know how to achieve remote logging
Thanks
Gajendra
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
