Advanced logging logic complete