Fix use of 'compressed' flag for printlog.

Also added printlog call to test case for log compression.
Refs #1472.