What do you need the string for and why are you using the logging system for it? You could just construct the string directly like
str = "$(date) --- message here --- INFO --- $(@__MODULE__)"
for example.
As an aside, please don’t ping users directly (at least not me) in threads where they haven’t participated. Just state your question and anyone that knows the answer can help. I am happy to help when I can, but there are many users on the forum that can help.