Add log support for pmake