Adding a logging block mechanism.