Login Page - Create Account

Support Board


Date/Time: Tue, 23 Apr 2024 16:44:29 +0000



AddMessageToLog not writing to log

View Count: 567

[2020-11-22 06:56:48]
User153286 - Posts: 44
I have the following code in my custom study, but it's not appearing in the Message Log

int MyInt = 50;
float MyFloat = 2.5f;
SCString Buffer;
Buffer.Format("My integer is %d. My float is: %f", MyInt, MyFloat);

sc.AddMessageToLog(Buffer,0);



Any suggestions why it won't write to the log?
[2020-11-22 14:51:11]
Sierra Chart Engineering - Posts: 104368
Make sure that Window >>Disable Visible Message Logging is unchecked.

Otherwise, that function call in your code must not actually be getting called.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2020-11-22 14:51:30

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account