logging facility: thread-safe, run-time level selection, level-based log code elimination