Solution.
Let ε>0, and observe that if we set uε(z)=u(z)−εlog∣z∣, then uε is still subharmonic and
uε(z)=(log∣z∣u(z)−ε)log∣z∣≤0
for ∣z∣≥R for some R>0, by assumption. Thus, by the maximum principle, it follows that uε(z)≤0 on ∣z∣≤R, hence on all of C. Sending ε→0, we see that u(z)≤0 on C. Thus,
∣z∣→∞limsupuε(z)=−∞,
so by the maximum principle applied to a large annular region, we see that uε(z) must attain its maximum in ∂D. Thus, by the maximum principle applied to the unit disk,
∣z∣≥1supuε(z)=z∈∂Dsupuε(z)=z∈∂Dsupu(z)=z∈Dsupu(z),
since u and uε agree on ∂D. Hence, for ∣z∣≥1,
u(z)=uε(z)+εlog∣z∣≤z∈Dsupu(z)+εlog∣z∣.
Sending ε→0 again, we see that u(z) must attain its maximum in D by continuity, so by the maximum principle again, u must be constant.