1. A method of providing programmable event-controlled continuous code logging for a mobile device operating system (OS), comprising: establishing a first trigger that initiates continuous collection of a log code, event code or a request-response packet (log data) of a mobile OS; establishing a second trigger that terminates collection of the log data; conditioning execution of the first trigger and the second trigger on occurrence of a start event and a stop event, respectively, wherein at least one of the start event or the stop event is associated with a non-hardware start-up or a non-hardware shut down operation of a mobile device, and wherein the start event and stop event are determinable by an application or process of the mobile OS; and providing a second application or process with access to selected ones of the continuously collected log data, selected based on a predetermined sampling function.