Changes to logCustom()
Fixed syntax error