Basic implementation of log prior.
This will work for both analytic and binned templates, including when the template parameters are part of the search space.