Added logging framework.

Subj.