Added some logging when creating Text objects.