I am writing a client-server application using Java RMI.
Now, my question is I have multiple clients and a server, to see some communication, I have System.out.println statements (SOPs) in both client and servers, but I see all the outputs on just one console, is there a way to view them separately?
To clarify it further let me give you a simple example,
**Server**
void callServer(){
System.out.println("Server is called");
}
**Client**
void callClient(){
System.out.println("Client is called");
server.callServer();
}
**Simulator**
main(){
//create RegistryServer
//create server instance
//create client instance
System.out.println("Sim Started");
client.callClient();
}
OUTPUT of Sim
Sim Started
Client is called
Server is called
Desired Output
Sim Console:
Sim Started
Client Console:
Client is called
Server Console:
Server is called
Is it possible?