test-plugin: create log

Use own logging function instead of g_{debug|warning}. It looks better.