import webserver.WebServer;

public class Client {

    public static void main(String[] args) {
        WebServer ws = new WebServer();
    }
}

import org.slf4j.MDC;
import webserver.WebServer;

public class Client {

    public static void main(String[] args) {
        MDC.put("pid", getPid());
        WebServer ws = new WebServer();
        MDC.clear();
    }

    private static String getPid() {
        String processName = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
        return processName.split("@")[0];
    }
}

Use process id in log file names to distinguish between different instances of the same component.
Use process id in log file names to distinguish between different instances of the same component.
