Process logging hack