add basic test for logger

I want a "pluggable" logger, but we need more tests beforehand ;-)
Please apply perltidy to this file to keep consistent formatting with the rest of the codebase.