Add functions for getting the logging.

Change-Id: Ia12708f66e5ea7efb7ed889d0e924653f8d2fa44