add a log function for multiple processing