docs/logging: corrected example register() syntax