add .log() function for legacy support