Cc1cc(O)c2c(c1)C(=O)C(c1c(C)cc3c(c1O)C(=O)C1OC1C3=O)=CC2=O
For non-ionizable compounds Log P = Log D throughout pH range, whereas for ionizable compounds LogD takes into account the partition of both ionized and non-ionized forms.  What is logD of this molecule?