Let's say my server code looks like the following:

SocketPtr client;
int port = 12345;
ServerSocket *serverSocket = new ServerSocket( port );

while ( True )
{
        // waiting for client to accept connection
        client = sock->accept();
        
}

How can I redirect the logging output of the client to the logging file
of the server? In my design, each client is supposed to have a unique
LoggingPtr.

Thanks
Thierry

Reply via email to