Presumably your concern is that the log is not defined for negative values of y.
It is a bit like the surd for square roots ... to account for negative values, define: ##\log_b|y|=x##, i.e. take the absolute value. Then there are two possible values going the other way.
Otherwise you are implicitly requiring a positive value for y as the original input.