PDA

View Full Version : Redirect Print output to my logger


dimkdimk
01-13-2010, 11:54 PM
Hi All,

I was wondering if anyone knows how to make this:
I want to redirect all output of "Print" function including internal trace messages that NT sends on its own to my logger.
I am using log4net for logging and ideally I would like to see all messages in there. Anyone have any ideas ? Like override Print function or anything else in C# internals ? I am a beginner in C# just yet.

Thank you.

NinjaTrader_Bertrand
01-14-2010, 05:01 AM
dimkdimk, unfortunately this is not supported.

dimkdimk
01-22-2010, 11:19 PM
dimkdimk, unfortunately this is not supported.

I was expecting this answer. I understand.

Just a question. Can you please open to me how to find this member from the script:
NinjaTrader.Cbi.LogEventCollection

At least I can get new events from this collection and put them into my Logger.
This not formal request for support. Just a hint will do.

NinjaTrader_Ben
01-23-2010, 09:43 AM
Hello,

I will have someone reply to you on Monday. Thank you for your patience.

NinjaTrader_Bertrand
01-25-2010, 06:22 AM
I would suggest you check into this sample here then - http://www.ninjatrader-support2.com/vb/showthread.php?t=9825