[connection] add logging method on connection
If we are to use this object like we currently do with session, we need to have
the logging method as a lot of code use them.
from yams.buildobjs import RelationDefinition
class ARelation(RelationDefinition):
subject = 'CWUser'
object = 'CWGroup'