Configurable log prefixing (fixes #278)