You appear to be ignoring file and line. In mod_pagespeed we would do something like:

"[mod_pagespeed %s @%d] %s:%d:%s", version_string, pid, file, line, formatted_message