Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The problem of properly defining Sobolev spaces on a subset of the boundary of a domain is briefly addressed in the appendix of H. Berninger's dissertation (248pp): page.mi.fu-berlin.de/haiko/dissertation_Berninger.pdf You might especially find the references valuable.
I meant that positivity of $f$ does not help in determining whether or not $log \circ f$ is concave. My answer should've been a reply to wmmiao's answer of course but I lack the permission to reply.