Can someone summarize how to setup logging from multiple pages/modules?
I got the example main.cpp to work, e.g.:
/* this is main.cpp */
#include <cxxtools/log.h>
log_define("myapp");
int main(int argc, char* argv[]) {
log_init("myapp.properties");
....
log_info("starting myapp");
}
But I have several modules (page1.ecpp, page2,ecpp,...) where I want to
log something but write to the same log file (defined in myapp.properties).
In page{1,2,...}.ecpp where do I need to call log_define() and log_init().
Obviously, when different pages are requested I don't want to truncate
or reinitiate the file every time.
Alan
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general