Only define the constant Log if it isn't already defined

Best practice