Correctly send message, level and hostname

Fix issue #230 where the level would hold the message and the log level
information would be lost.
Change spaces by tabs

Keeping constitency with the rest of the code.
Remove test logging
Merge pull request #232 from GregoireDigbil/fix_loggly_formatting

Fix loggly formatting