Port client logging from Tremfusion.