Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 trace logging

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NT8 trace logging

    Hi,

    Is there any way for me to dial down the detail level, or disable the trace logging in Ninjatrader 8? The reason is because today I have been running some code which makes a lot of orders, changes, etc., Just came back to find the platform had quit to the desktop. No error, but realise my disk is full. The unclean shutdown, even though I now have space again has prevented NT starting at all now. (i'll solve this) Checking the 'trace' folder and the last 2 files alone were >35Gb.... I don't need this level of detail unless I am trying to solve a problem, and this level of detail is going to cause me problems, and perhaps impacts performance.

    I'd like to dial it down, or even turn it off, if possible?

    Thanks.

    [edit] same applies to the cqg/continuum log perhaps - would like to reduce/disable... Also, my 'log' tab in control center will show these messages, so this probably consumes a lot of resources. No need to me to log all order change detail, unless I need it for troubleshooting. Ta
    Last edited by pjsmith; 01-04-2019, 01:42 PM.

    #2
    There is no way to reduce the recording of order related events in your log/trace files other that reducing the total amount of orders submitted by your code.

    Comment


      #3
      Oh dear - That's not good. Perhaps you could ask them to add that as a feature. The logging is far more detailed than I need and it is not possible to delete the files with NT in use... Either reduced logging, or beginning a new file once files reach a certain size (so the old ones can be removed) is required, really. Thanks.

      As a workaround, is it possible to change where those trace logs are stored?

      btw - as a workaround, I'm going to dump ALL log files into null, but I'd rather have a more sensible solution, like selective logging, else if I want to turn on logging, I have to start messing with symlinks, restarting nt etc.
      Last edited by pjsmith; 01-04-2019, 02:26 PM.

      Comment


        #4
        The details of the orders in your log/trace files is more for our technical analysis than for the end users. I doubt this level of detail would be changed, but I'll submit a feature request on your behalf. The internal tracking number for your feature request is SFT-3741. Please reference this internal tracking number if you ever have questions regarding this feature request.

        When a feature request is implemented, you'll find it in the release notes:




        The sheer size of the files you're referring to makes me think there may be some other underlying issue. Approximately how many orders are being submitted in 1 hour period of time?

        When you open the log/trace file, is it literally only order submission prints? Or are there other lines which your code is printing to these files?

        What is the size of your database file? To check, follow these steps:
        • Navigate to Documents > NinjaTrader 8 > Double left click on the 'db' folder
        • Right-click on 'NinjaTrader.sdf' (may only say 'NinjaTrader' depending on your Windows settings) > Properties
        • Tell me the size
        Last edited by NinjaTrader_PatrickG; 01-04-2019, 05:07 PM.

        Comment


          #5
          Hi,

          Thanks. I fully understand the importance of the log files and their use for troubleshooting, which is why I would prefer to keep some detail, rather than dump them all. But, perhaps forcing full log detail all the time is not the best idea, especially for users with special cases, stable setups, no apparent issues, or wanting better performance in these scenarios (that's not me quite yet!). For this particular scenario thought, it is a problem. I'm fully aware of what is causing the issue. Yes, I leave NT running 24x7 (if it will stay running) and generate lots of orders. The db file is fine. Been hovering around 100mb for a few months. It is slow to pull a performance report once you make a lot of trades in a day, but I want to keep the history. Another problem, but not to get sidetracked! This is just for proof of concept - App will be moved off NT once developed and working, but for testing period, it's all on NT.
          Last edited by pjsmith; 01-05-2019, 08:25 AM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          213 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          544 views
          0 likes
          Last Post PaulMohn  
          Started by GLFX005, Today, 03:23 AM
          0 responses
          3 views
          0 likes
          Last Post GLFX005
          by GLFX005
           
          Started by XXtrader, Yesterday, 11:30 PM
          2 responses
          12 views
          0 likes
          Last Post XXtrader  
          Started by Waxavi, Today, 02:10 AM
          0 responses
          7 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Working...
          X