support log function for no boost library