fiddle log function