Logging and using the context information