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 bortz, 11-06-2023, 08:04 AM
|
47 responses
1,606 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
13 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment