Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Log to log and trace files

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

    Log to log and trace files

    In NT7, it appears that log() will always log to the log file but only to the trace file if the LogLevel is LogLevel.Error or LogLevel.Alert.

    In NT8, it would be good to have a corresponding way to create user-defined entries specifically in the trace file. Ideally, an enhancement of the log() method would work with the following syntax: Log(string message, LogLevel logLevel, LogTarget logTarget)

    LogTarget would have three possible values:
    - LogTarget.Logfile
    - LogTarget.Tracefile
    - LogTarget.Bothfiles

    All LogLevels could be written to either file.

    I use the trace file, with all its detail, to log "errors" to help debug tricky issues. This interlacing of my user-generated messages and the NinjaTrader-generated messages provides very useful sequencing information to understand when events occurred in the broader context of the whole program.

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,


    I have submitted a feature request to the product management team for the following feature :


    This customer would like a custom Log Level added which would allow them to write only to the trace file, and not to the log file


    I will follow up with more information as soon as it's available. If the feature requests already exists, a vote will be added to it.


    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Log to log and trace files

      Thanks, Jessica.

      Actually, the facility would be more flexible than what you have described. My original explanation was intended to convey that just as one can write all LogLevels (Warning, Information, Error and Alert) to the log file, so too one should be able to do the same specifically to the trace file, and where desired, to both files at once.

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Hello jeronymite,

        This feature is being reviewed by the product management team and has been assigned the following unique tracking ID


        SFT-1515


        Please let us know if there is any other way we can help.
        Jessica P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,227 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        440 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        11 views
        0 likes
        Last Post FAQtrader  
        Working...
        X