Fixed tselogging to work across packages.