An application can run on multiple hosts and if we want to collect the logs from all clients we can use log4j's socket appender.
Log4j has implemented SimpleSocketServer which calls SocketNode which collects all events from all clients to a single log file so it's difficult to identify them.
Out goal is to collect events from each client to a separate log file with file name xxx-{client}.log where {client} is the client address.