Set the logger level in a way that allows later changing
Improve logging messages and consistency
Only report the length of the malformed record in the error
Refactor datalogger.py and remove serial connection from select writers list.

We don't want select to return if we can write to the datalogger, that
will waste CPU cycles.