Truly every problem can not be solved by flogging the child. Some issues are sever while some minor, but this does not mean physically spanking will change the child.
We need to also morally discipline children by letting them know the implication of badly behaved.