Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Logging console data to text file on crio (http://www.chiefdelphi.com/forums/showthread.php?t=76638)

Kingofl337 09-04-2009 09:00

Logging console data to text file on crio
 
I was wondering if any of the VXWorks Guru's knew how to log all the console data to a text file. I know how to write data from within a program "c++" to a text file but, I'm looking to log "ALL" console messages. So, if a program crashes or I get any allocation errors I will be able to review that information later. Normally I would just plug a serial logger into the serial port but we aren't allowed to do that this year.

heydowns 09-04-2009 10:02

Re: Logging console data to text file on crio
 
I've never tried this, but a search turned up vxWorks' iolib, containing the function ioGlobalStdSet, which should let you redirect standard output to a file that you've opened:
http://www.fys.uio.no/studier/kurs/f...ioGlobalStdSet

You likely won't get the early boot-up messages that go to console as your code won't have been loaded at that point to make this redirection, but if you are just looking to log your "printf" and other stdout-based logging output, this hopefully will do what you need. If you try it, let us know if it works.

Kingofl337 09-04-2009 18:49

Re: Logging console data to text file on crio
 
I don't see how this will redirect the console...

Where's Joe or Greg when we need them :p.

EricVanWyk 09-04-2009 18:57

Re: Logging console data to text file on crio
 
Quote:

Originally Posted by Kingofl337 (Post 848271)
I don't see how this will redirect the console...

Where's Joe or Greg when we need them :p.

Well deserved vacation, IIRC


All times are GMT -5. The time now is 03:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi