Work on logging.

- added additional logger macros
- made cg_main.c traceable