1. A method for generating and controlling logging data in a device management (DM) system comprising: receiving a command for storing logging data; and determining, by a logging sub-tree management unit of a DM client, a location for storing the logging data in a logging sub-tree and storing it the determined location in the logging sub-tree.