hi,
OpenSim api c++ exe. application will generate a output.txt file.
This is realized by redirect cout to both standard and txt file.
Is it possible to let it not output result to a txt.file or change the output directory of it?
Is there any method in LogManager class to realize it?
thanks in advance,
jiang
about LogManager
- Ayman Habib
- Posts: 2244
- Joined: Fri Apr 01, 2005 12:24 pm
Re: about LogManager
Hi Jiang,
The names of files for out.log, err.log are hard coded in the constructor of LogManager and they're not exposed, neither is the directory that contains the files (which is the current working directory by default). It would be good to have a feature request/thread to discuss what functionality you'd want in the LogManager to account for it in our development plans for the next major version of the software.
Best regards,
-Ayman
The names of files for out.log, err.log are hard coded in the constructor of LogManager and they're not exposed, neither is the directory that contains the files (which is the current working directory by default). It would be good to have a feature request/thread to discuss what functionality you'd want in the LogManager to account for it in our development plans for the next major version of the software.
Best regards,
-Ayman
- Christopher Dembia
- Posts: 506
- Joined: Fri Oct 12, 2012 4:09 pm
Re: about LogManager
A good place to have this discussion is here: https://github.com/opensim-org/opensim-core/issues/36
- Jiang Ping
- Posts: 132
- Joined: Sun Aug 26, 2012 4:09 am
Re: about LogManager
Hi Ayman,aymanh wrote:Hi Jiang,
The names of files for out.log, err.log are hard coded in the constructor of LogManager and they're not exposed, neither is the directory that contains the files (which is the current working directory by default). It would be good to have a feature request/thread to discuss what functionality you'd want in the LogManager to account for it in our development plans for the next major version of the software.
Best regards,
-Ayman
Thanks for your reply. I just want opensim not to output the log to a file because I am doing some multiprocess things. I dont hope my child process to output the log to the same file. Now I just delete the redirection to out.log and only remain the standard cout in opensim source file.
I hope opensim could redirect to a user named file.e.g. when user wants to redirect to "userLog.log", adding new redirection to it, copying "out.log" to it and then delete "out.log ".
best regards,
jiang