I log a few things in my strategy. I initially had the log color set to red then I removed my strategy from the strategy monitor and changed the color of my logs to yellow and then added my strategy back to the strategy monitor. Now when the strategy runs I can still see the old red logs coming in.
    
    
    
    
    
        Rename
    
        Have you tried to double check your code in the first place? Next step would be to reopen the SM, then restart WL.
    
    
        Yup I double checked my code, I see some of the newer logs that I added showing up with the correct color 
But it is showing the old version of the log, even though some newer logs I added are showing up in the correct format/color
    
CODE:
WLHost.Instance.AddLogItem($"{this.StrategyName}", $"AssignAutoStopTargetPrices for {t.Symbol} initial {t.TransactionType} entry at {executionPrice}", WealthLab.Core.WLColor.LightYellow);
But it is showing the old version of the log, even though some newer logs I added are showing up in the correct format/color
QUOTE:Confusing. Which is it? If both are happening at the same time, maybe you're running different versions of the strategy or there's another path in the strategy with the old code.
But it is showing the old version of the log, even though some newer logs I added are showing up in the correct format/color
        Yes confusing, that is why I posed the question. I only have this one instance in the strategy monitor, there is no where else with that log. I guess I just have to assume I have to restart WL everytime I make a code change?
    
    
        The reason you are not seeing the color change is because the logging tool groups messages if they have exactly the same text, to keep things from getting overloaded. You're changing only the color. If you change the message text too you will see that you don't need to restart WL8. When you save the Strategy and add it to the SM again, you'll see the messages in the new color.
    
    
            Your Response
            
            Post
        
        
        
    
            Edit Post
            
        
        
        
    
            Login is required