Add debug logging support