log: adjust test code

- import gocheck with name "C"
- check logger's output through redirecting it to file
- disable spare output

Change-Id: Ieae294f0e75c79bcf607500ade038d7e1c2b6f5b