Added the log level as an parameter for both server and client.