toLogStr() methos added to some classes, useful for logging