Backporting Debug Log API.