added -logLevel to allow control of the log level

This PR allows specifying the level of messages that will be logged. This option is added to both client and server:

 -logLevel="DEBUG": The level of messages to log. One of: FINEST, FINE, DEBUG, TRACE, INFO, WARNING, ERROR, CRITICAL