Logs in context with agent APIs