Determine logging API endpoint dynamically