reuse processLog. make it public