logging is done

Logging is finished and works with a listener now. The log window is
also finished.