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.
Comment