logDebug() is made parameterisable.