OK. I can now write to my access.log file :)

And for errors ? I don't find any method setErrorLog in tnt::Tntnet class.

Thanks,

Jean-Marc

Le 11/04/2015 20:14, Tommi Mäkitalo a écrit :
Hi,

Strange. Are you sure, you test with the latest git. Can you check, that you have the latest check in "b08f4c436234f54086e71739501e0b6ffa9ac668" with the comment "fix setting access log file using the method tnt::Tntnet::setAccessLog". And verify, that you really test against it.

I tested it with the bookshop demo using the Configuration class. I attach the diff against bookshop HEAD I used.

Tommi

Am 11.04.2015 um 17:40 schrieb Jean-Marc Choulet:
OK for daemonize().

I don't have TntConfig variable. As your bookshop example, I created the Configuration class and I use it to call setAccessLog method. I tried with the latest git version of tntnet without success.

Jean-Michel



Le 11/04/2015 16:02, Tommi Mäkitalo a écrit :
There is no direct support of starting your own app as a daemon. But you may want to use the function:

    cxxtools::posix::daemonize(const std::string& pidfile =
    std::string());



After that the process runs in the background. Note that the pid of the current process will change since this function calls fork and exit for the current process and continues in the forked process.

Tommi

Am 11.04.2015 um 15:47 schrieb Jean-Marc Choulet:
Le 11/04/2015 15:39, Tommi Mäkitalo a écrit :
Either update to latest git version, where I just checked in a fix or use:
Latest git version of tntnet only ?

And to start my app as daemon ? I don't find any method to set this
parameter in my main.cpp file.

Jean-Marc

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to