include log function.