Don't prepend dashes to debug messages.
Log input and reponse. Prepend log entries with type.