My samsung grand duos always hang or logging

Logging means keeping track of something on the device, or the device itself. So I don't think that is what you mean, considering the info in the title.

Are you referring instead to it freezing or hanging? If that is the case, we would need more details. Is it happening when doing something specific, or no matter what you do? Please clarify a bit more.