The logarithm applied to a product can be converted into a sum of logarithms; namely,
The lnexpand command does this expansion.
Example. Input:
Output: