Improve logging by better using levels.
part of #130.