add helper function to easy to use log in console, fixed #16