Add -l flag to grok-manifest for logfile support

This will generate debug-level entries in the logfile.
Record PID in the log messages saved into files