Simple logger abstraction that leverages or avoids console.debug
depending on availability