Refactor logPolicyResult to include dynamic policy limits
Updated the logPolicyResult function to accept dynamic policy limits for foreign and home IPs and countries as arguments, rather than using the values from the configuration directly. This enhances flexibility and allows easier adjustments to the policy parameters during runtime.