modified log to plog