Added log() and logf() functions