Languages

Menu
Sites
Language
Service console.log

How can I see what's service logging on console?

I can see the log "Launch Service succeeded", but I can't see "service start"

I can't see the log when I launch application containing service with something like that:

module.exports.onStart = function() 
{
   console.log("service start");

}

 

init.js

tizen.application.launchAppControl(new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/service"),
            "XXX.service1",
            function() {console.log("Launch Service succeeded"); },
            function(e) {console.log("Launch Service failed : " + e.message);});

config.xml:

<tizen:service id="XXX.service1" on-boot="true" auto-restart="true">
        <tizen:content src="service/service.js"/>
        <tizen:name>WebServiceApplication1</tizen:name>
        <tizen:icon src="icon.png"/>
        <tizen:description>Service FotballLive</tizen:description>
    </tizen:service>

 

Edited by: Juliusz Straszyński on 21 Oct, 2015
View Selected Answer

Responses

4 Replies
Palitsyna

Hello,

tizen.ApplicationControl() requires  http://tizen.org/privilege/application.launch privilege. You should add it into your config.xml file. Here you can find a bit more information and examples: https://developer.tizen.org/community/tip-tech/application-api-guide?langredirect=1#launchservice

Juliusz Straszyński

I've did add all required privileges, including 

http://tizen.org/privilege/application.launch

I can see "Launch Service succeeded", but not  "service start"

Mark as answer
AVSukhov

Hello,

Try to use dlog command for sdb.

Juliusz Straszyński

Thank you!