Print to Log.

Changing prints to logs.