Forum Discussion
Orvai
Occasional Contributor
Hi tristaanogre,
indeed my code already is like you suggested, I missed the 'additional Info' attribute in my example. I'm sorry.
Best regards
Christoph
AlexKaras
7 years agoChampion Level 3
Hi Christoph,
> MyLog.LogMessage("An error occured", pmHigher, "", MyControl)
> Log.Error(message, priority, attributes, MyImage)
Another note is that Attributes parameter for Log.Error is a structure and it is quite possible that the string that you pass as an actual argument cannot be converted to the required structure.
What if you change
MyLog.LogMessage("An error occured", pmHigher, "", MyControl)
to
MyLog.LogMessage("An error occured", pmHigher, Log.CreateNewAttributes(), MyControl)
?
Related Content
- 6 years ago
- 2 years ago
Recent Discussions
- 14 hours ago