Allow binding variables to loggers

This is to allow custom arguments to be logged with every message
returned by a logger.

Use-case: in centralized logging, I want to know which application
generated every message.
But see general review comments below for completely different suggestion.