Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Export Log
Collapse
X
-
Hello cutzpr,
Thank you for the post.
I wanted to clarify your question, are you asking to export the automatically generated logs that you see in the control center? If so, that would already be saved in the log folder: Documents\NinjaTrader 8\log
Can you confirm if this is what you are looking for or what specific log you are referring to?
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Yes, I would like to be able to export it via ninja script, possibly filtered by category. Why you may ask? I am building a remote monitoring tool for my strategies and I would rather send the log as events, as they occur instead of having to build a file watcher service and parse the complete log just for the latest entry.
Comment
-
Hello,
Thank you for the reply.
Yes, in this case, I would be unaware of any existing method to export the internal log as that related to the entire platform and not a specific object. There are only documented ways to write to the log but not to retrieve log entries.
You would likely need to read the log file if you wanted to see all of the platform events, otherwise, if you are only looking for events from your scripts I would likely suggest using a different logging method.
If the intended goal is to review it later in an external program and that program is something you developed you could likely create a C# way to pass that data to your program bypassing the platform logging. If this is a third party program you did not create, you would likely need to use whatever means that program has to load the data which may entail reading the log file.
I would caution reading directly from the files in the user folder, in case any of the files get locked that could cause problems in NinjaTrader if it tries to read or write that file.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
If the intended goal is to review it later in an external program and that program is something you developed you could likely create a C# way to pass that data to your program bypassing the platform logging. If this is a third party program you did not create, you would likely need to use whatever means that program has to load the data which may entail reading the log file.
Comment
-
Hello cutzpr,
Thank you for the reply.
I will put in a feature request for a method to retrieve log entries. As it is now, you could technically pass any logging you have in your strategy to your web server using C# means from each individual strategies logic. For the platforms other logging that would need a feature request which I have submitted, you can track it with the ID: SFT-3368.
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 07-20-2018, 06:50 AM.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 09:10 AM
|
1 response
10 views
0 likes
|
Last Post Today, 09:46 AM | ||
Started by goodknight777, Today, 08:43 AM
|
1 response
5 views
0 likes
|
Last Post Today, 09:25 AM | ||
Started by kramnor2001, Yesterday, 02:30 PM
|
3 responses
21 views
0 likes
|
Last Post
by kramnor2001
Today, 09:20 AM
|
||
Started by Padan, Today, 02:02 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 08:54 AM | ||
Started by Tim-c, Today, 08:36 AM
|
1 response
3 views
0 likes
|
Last Post Today, 08:45 AM |
Comment