lightrec/plugin.c: Use logging interface instead of printf