add log messages to context-manager