Writing GLM log class