Don't depend internally on LOG_ constants

As they are not available on all platforms