stderr to Output.log or somewhere
Hi,
While writing code in C++ for the plcnext we had some code running within a realtime program assert (boost::optional, since the value was not initialised specifically). This as expected brought down the run-time, but there was no smoking gun in the logs (we had to crack out GDB and fiddle around). My questions are as follows :
- Is stderr redirected to a file or location for the PLCNext run-time ?
- If not, is there a way for us to redirect stderr to Output.log ? (presume this might be a setting in log4cplus log file)
Cheers,
Lindsay
Comments
Is stderr redirected to a file or location for the PLCNext run-time ?
stderr is redirected to
/dev/null
.In the script
/etc/init.d/plcnext
:is there a way for us to redirect stderr to Output.log ?
Not unless you start the PLCnext Runtime yourself, not using the standard init.d script. That would be an advanced option that can be helpful for debugging but which isn't recommended for general use.
Martin,
Thanks again for the prompt response. Did not think to actually check the init script and handle the redirect there. That will work.
Cheers,
Lindsay