added client logging