pymc.exceptions.SamplingError for three normal variables the means whereof are 0 and the standard deviations whereof have independent logarithmic priors

Is the best way to specify a logarithmic prior in PyMC the following?

import pymc as pm

pm.CustomDist(
    "std",
    logp=lambda tensor: -pm.math.log(tensor),
    transform=pm.distributions.transforms.log,
    initval=1.0,
)