fix logger implementation and test
Merge pull request #9621 from owncloud/fix_logger_implementation

fix logger implementation