add plog module to handle the log issue