Added a 'logging' window.

The window gets opened and raised if a logging message at or above the
desired logging level occurs. Use the -v option to set the logging
level.